JDK-6551620 : "javac -Xmaxerrs 0" -> java.lang.AssertionError: typeSig 19
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-04-30
  • Updated: 2011-02-16
  • Resolved: 2009-09-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Description
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.

Comments
EVALUATION Will treat 0 and -ve numbers as bad input, meaning the default value will be used.
10-09-2007