-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Script-Security 1.19
When building with -Djenkins.version=2.0 -Djava.level=7 the following errors appears:
keywordsAndOperators(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest) Time elapsed: 0.273 sec <<< ERROR! org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.util.List java.lang.Object at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.assertEvaluate(SandboxInterceptorTest.java:582) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.keywordsAndOperators(SandboxInterceptorTest.java:542) ambiguousOverloads(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest) Time elapsed: 0.03 sec <<< ERROR! groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest$Ambiguity#m. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URL] at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.assertEvaluate(SandboxInterceptorTest.java:582) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.ambiguousOverloads(SandboxInterceptorTest.java:497)
They seem related to the upgrade from Groovy 1.8.9 to 2.4.6
- links to