We're updating the issue view to help you get more done. 

Lucee fails to cast the value returned from String.charAt(index) as integer

Description

This code will output 116 on Adobe ColdFusion (which is the ASCII code for the letter "t".

1 2 string= 'test'; writeDump(JavaCast("int", string.charAt(0)))

Using javacast on an char to cast it to an int apparently does the same as the asc() function. This code errors in Lucee 4.5 and Lucee 5.

Environment

Status

Assignee

Michael Offner

Reporter

Brad Wood

Fix versions

Priority

Major