-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
7
-
x86
-
windows_xp
JavacProcessingEnvironment is releasing the Name table even if it's supposed to be shared. Here is a time stack traces I get when compiling.
(The lines in the trace might be a bit off, since I have local changes.)
Do processing causes close() on the compiler which in turn calls names.dispose();
The line after compiler.close() is currentContext = contextForNextRound(currentContext, true); It creates a new context trying to share the names (the last param is true.) Unfortunately the name table was already disposed.
java.lang.Exception: Disposing Name table
at com.sun.tools.javac.util.Name.Table.dispose()
at com.sun.tools.javac.main.JavaCompiler.close(JavaCompiler.java:1446)
at com.sun.tools.javac.main.JavaCompiler.close(JavaCompiler.java:1415)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessin
g(JavacProcessingEnvironment.java:783)
at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler
.java:1000)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:746)
at com.sun.tools.javac.main.Main.compile(Main.java:381)
at com.sun.tools.javac.main.Main.compile(Main.java:307)
at com.sun.tools.javac.main.Main.compile(Main.java:298)
at com.sun.tools.javac.Main.compile(Main.java:84)
at com.sun.tools.javac.Main.main(Main.java:69)
(The lines in the trace might be a bit off, since I have local changes.)
Do processing causes close() on the compiler which in turn calls names.dispose();
The line after compiler.close() is currentContext = contextForNextRound(currentContext, true); It creates a new context trying to share the names (the last param is true.) Unfortunately the name table was already disposed.
java.lang.Exception: Disposing Name table
at com.sun.tools.javac.util.Name.Table.dispose()
at com.sun.tools.javac.main.JavaCompiler.close(JavaCompiler.java:1446)
at com.sun.tools.javac.main.JavaCompiler.close(JavaCompiler.java:1415)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessin
g(JavacProcessingEnvironment.java:783)
at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler
.java:1000)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:746)
at com.sun.tools.javac.main.Main.compile(Main.java:381)
at com.sun.tools.javac.main.Main.compile(Main.java:307)
at com.sun.tools.javac.main.Main.compile(Main.java:298)
at com.sun.tools.javac.Main.compile(Main.java:84)
at com.sun.tools.javac.Main.main(Main.java:69)