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

"javac -Xmaxerrs 0" -> java.lang.AssertionError: typeSig 19

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 7
    • 6
    • tools
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.6.0_01"
      Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
      Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

      javac 1.6.0_01

      ADDITIONAL OS VERSION INFORMATION :
      Windows XP Professional Build 2600.xpsp_sp2_qfe.070227-2300 (Service Pack 2)

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      lenovo T60

      A DESCRIPTION OF THE PROBLEM :
      The exception occurred in the compiler.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      write Test.java
      -start------------------
      class A {
          a
      }
      -end-------------------

      run javac with -Xmaxerrs 0 option.
      -start------------------------------------
      javac -Xmaxerrs 0 Test.java
      -end-------------------------------------


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Nothing is displayed and compile failure.
      ACTUAL -
      The error message was displayed.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      An exception has occurred in the compiler (1.6.0). 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: typeSig 19
              at com.sun.tools.javac.jvm.ClassWriter.assembleSig(ClassWriter.java:337)
              at com.sun.tools.javac.jvm.ClassWriter.typeSig(ClassWriter.java:406)
              at com.sun.tools.javac.jvm.ClassWriter.writeField(ClassWriter.java:920)
              at com.sun.tools.javac.jvm.ClassWriter.writeFields(ClassWriter.java:1412)
              at com.sun.tools.javac.jvm.ClassWriter.writeClassFile(ClassWriter.java:1502)
              at com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1442)
              at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:618)
              at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1289)
              at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1259)
              at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:765)
              at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:730)
              at com.sun.tools.javac.main.Main.compile(Main.java:353)
              at com.sun.tools.javac.main.Main.compile(Main.java:279)
              at com.sun.tools.javac.main.Main.compile(Main.java:270)
              at com.sun.tools.javac.Main.compile(Main.java:69)
              at com.sun.tools.javac.Main.main(Main.java:54)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      class A {
          a
      }

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

      CUSTOMER SUBMITTED WORKAROUND :
      Write a correct code.

            jjg Jonathan Gibbons
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: