Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6576335

JavacProcessingEnvironment is releasing the Name table even if it's supposed to be shared

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              jjg Jonathan Gibbons
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: