Status/Resolution/Reason: To Test/Withdrawn/Fixed
Reporter/Name(from Bugbase): Luis Majano / ()
Created: 03/28/2018
Components: Language, Java Integration
Versions: 2016
Failure Type: Others
Found In Build/Fixed In Build: all /
Priority/Frequency: Normal /
Locale/System: / Linux All
Vote Count: 8
Problem Description:
There is tremendous inconsistency the way that java objects are used in CF and makes java interop basically null.
When creating certain direct java classes and calling methods on it, those methods seem to be lost and not executable. Which goes against the JDK spec. Below are several examples:
{code:java}
variables.longStream = createObject( "java", "java.util.stream.LongStream" );
variables.jStream = variables.longStream.range(
javaCast( "long", arguments.start ),
javaCast( "long", arguments.end )
);
var stream = createObject( "java", "java.util.stream.Stream" ).empty();
createObject("java", "java.lang.String").init( "luis" ).chars()
{code}
I am not sure why, but they work as they should in lucee.
Attachments:
Comments: