Status/Resolution/Reason: To Fix//BugVerified
Reporter/Name(from Bugbase): Luis M. / ()
Created: 01/23/2019
Components: Language, Java Integration
Versions: 2018
Failure Type: Others
Found In Build/Fixed In Build: all /
Priority/Frequency: Normal /
Locale/System: / Linux All
Vote Count: 9
Problem Description:
Java 8 allowed the ability to have default methods and static constructs on interfaces. Allowing you to execute methods on them. This does not work on ACF since 11 up to 2018, but works perfectly in Lucee.
Steps to Reproduce:
myRange = createObject( "java", "java.util.stream.IntStream" ).range(
javaCast( "int", 1),
javaCast( "int", 4 )
).collect();
Actual Result:
The range method was not found.
Either there are no methods with the specified method name and argument types or the range method is overloaded with argument types that ColdFusion cannot decipher reliably. ColdFusion found 0 methods that match the provided arguments. If this is a Java object and you verified that the method exists, use the javacast function to reduce ambiguity.
Expected Result:
An array from 1 to 4
Any Workarounds:
NONE
Attachments:
Comments: