Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/8b67cae6202d341ed8ade82c913a5250 to your computer and use it in GitHub Desktop.
Save trycf/8b67cae6202d341ed8ade82c913a5250 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
//writeDump(server.lucee.version);
try {
result = CreateObject("java", "java.math.BigInteger").init("42", 36)
writeDump(result)
} catch (any e) {
writeDump([e.message, e.detail])
}
try {
radix = 36
result = CreateObject("java", "java.math.BigInteger").init("42", radix)
writeDump([result, radix.getClass().getName()])
} catch (any e) {
writeDump([e.message, e.detail])
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment