-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins 2.0
Due to a regression in Groovy 2.4 (GROOVY-7826) scripts using some of the core classes with complex generic type arguments (e.g. hudson.model.Run or hudson.model.Job) will cause a StackoverflowError.
Run this script in Script Console to reproduce the problem:
def foo(hudson.model.Run run) {}
This affects Script Console, Pipeline, Job DSL, Groovy plugin (system Groovy script) and probably other plugins using the Groovy runtime provided by Jenkins core.
java.lang.StackOverflowError at java.lang.StringBuilder.append(StringBuilder.java:132) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1173) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1159) at org.codehaus.groovy.ast.ClassNode.toString(ClassNode.java:1178) at org.codehaus.groovy.ast.ClassNode.genericTypeAsString(ClassNode.java:1199) ...
- is duplicated by
-
JENKINS-34765 "All Changes" returning stack overflow
- Resolved
- is related to
-
JENKINS-14044 System Groovy - Unable to cast to AbstractBuild
- Open
-
JENKINS-34525 StackOverflowError in Jenkins 2.0 with Simple Parameterized Builds Report
- Closed
-
JENKINS-21249 Update Groovy
- Resolved