Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Janino version: janino-2.4.3
-
Testcase included:yes
-
Number of attachments :
Description
org.codehaus.janino.JavaSourceClassLoader causes StackOverflowError when the attached source is processed.
Exception in thread "main" java.lang.StackOverflowError
at java.util.ArrayList.<init>(ArrayList.java:109)
at java.util.ArrayList.<init>(ArrayList.java:120)
at org.codehaus.janino.UnitCompiler.getOuterClasses(Unknown Source)
at org.codehaus.janino.UnitCompiler.compile2(Unknown Source)
at org.codehaus.janino.UnitCompiler$1.visitLocalClassDeclaration(Unknown Source)
at org.codehaus.janino.Java$LocalClassDeclaration.accept(Unknown Source)
at org.codehaus.janino.UnitCompiler.compile(Unknown Source)
at org.codehaus.janino.UnitCompiler.compile2(Unknown Source)
at org.codehaus.janino.UnitCompiler$1.visitLocalClassDeclaration(Unknown Source)
at org.codehaus.janino.Java$LocalClassDeclaration.accept(Unknown Source)
at org.codehaus.janino.UnitCompiler.compile(Unknown Source)
at org.codehaus.janino.UnitCompiler.compile2(Unknown Source)
at org.codehaus.janino.UnitCompiler$1.visitLocalClassDeclaration(Unknown Source)
...
at org.codehaus.janino.Java$LocalClassDeclaration.accept(Unknown Source)
at org.codehaus.janino.UnitCompiler.compile(Unknown Source)
at org.codehaus.janino.UnitCompiler.compile2(Unknown Source)
Fixed it. Will be released with version 2.4.4 (not scheduled yet).