-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins version: 2.277.4
Pipeline: Groovy version: 2.92
JDK: 11.0.2
OS: Windows Server 2012
After changing the Jenkins service executable to use x64 Java 11 our Groovy pipeline script throws the following exception when using IntStream:
java.lang.IncompatibleClassChangeError: Method java.util.stream.IntStream.range(II)Ljava/util/stream/IntStream; must be InterfaceMethodref constant
at java_util_stream_IntStream$range.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)