Janino

StackOverflowError when a local class is used

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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 :
    1

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)

Activity

Hide
Arno Unkrig added a comment -

Fixed it. Will be released with version 2.4.4 (not scheduled yet).

Show
Arno Unkrig added a comment - Fixed it. Will be released with version 2.4.4 (not scheduled yet).

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: