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

Assertion failed in javac (ClassWriter.java:513)

    Details

    • Subcomponent:
    • Resolved In Build:
      01
    • CPU:
      x86
    • OS:
      solaris_2.5.1, solaris_10, windows_2000
    • Verification:
      Verified

      Description

      Name: js151677 Date: 08/26/2004


      FULL PRODUCT VERSION :
      java version "1.5.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b60)
      Java HotSpot(TM) Client VM (build 1.5.0-beta3-b60, mixed mode, sharing)


      ADDITIONAL OS VERSION INFORMATION :
      Linux xxxx 2.6.8-1.521 #1 Mon Aug 16 09:01:18 EDT 2004 i686 athlon i386 GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Fedora Core 2, though I doubt that it's relevant

      A DESCRIPTION OF THE PROBLEM :
      This bug was previously submitted as number 300781, but you requested that I resubmit with a compact test case. It was difficult because this was distilled from a very large and complex class implementation, but I have reduced it more-or-less to its essence, submitted below in the "Source Code" section. Thank you very much for the opportunity to help you resolve this bug.

      Please note that this error occurs under 1.5-beta-2 as well as the latest beta-3 snapshot.

      The steps to reproduce the error and the error output are listed in the appropriate sections below


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Compile the code listed in the "Source Code" section, using the command:
      javac source-code-file-name.java


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Either successful compilation or a diagnostic indicating the error in the source code
      ACTUAL -
      Failed assertion in javac (see general the "Error Messages" section for details)

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      An exception has occurred in the compiler (1.5.0-beta3). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.lang.AssertionError: writePool D
      at com.sun.tools.javac.jvm.ClassWriter.writePool(ClassWriter.java:513)
      at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1333)
      at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1211)
      at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:325)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:474)
      at com.sun.tools.javac.main.Main.compile(Main.java:592)
      at com.sun.tools.javac.main.Main.compile(Main.java:544)
      at com.sun.tools.javac.Main.compile(Main.java:58)
      at com.sun.tools.javac.Main.main(Main.java:48)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      class A
          {
          void b ( ) { }
          }

      class C < D extends A >
          {
          protected D a ;

          class E
      {
      public void f ( ) { a . b ( ) ; }
      }
          }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      I have developed none as yet.
      (Incident Review ID: 300911)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ahe Peter Ahe
                Reporter:
                jssunw Jitender S (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: