Issue Details (XML | Word | Printable)

Key: JANINO-60
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Arno Unkrig
Reporter: Ito Kazumitsu
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Janino

StackOverflowError when a local class is used

Created: 23/May/06 02:47 AM   Updated: 26/May/06 06:52 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Java Source File S1.java (0.3 kB)

Environment: Janino version: janino-2.4.3

Testcase included: yes


 Description  « Hide
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)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Arno Unkrig added a comment - 26/May/06 06:52 AM
Fixed it. Will be released with version 2.4.4 (not scheduled yet).