JDK-6231246 : Javac crash with -g:none
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-02-20
  • Updated: 2010-04-02
  • Resolved: 2005-03-04
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 6
6 b27Fixed
Related Reports
Relates :  
Description
javac crashes in Code.java when -g:none option is use (no debug info)

        at com.sun.tools.javac.jvm.Code.markStatBegin(Code.java:1396)
        at com.sun.tools.javac.jvm.Code.emitop(Code.java:315)
        at com.sun.tools.javac.jvm.Code.emitop0(Code.java:416)
        at com.sun.tools.javac.jvm.Items$SelfItem.load(Items.java:347)
        at com.sun.tools.javac.jvm.Gen.visitIdent(Gen.java:2001)

###@###.### 2005-2-20 00:09:42 GMT
###@###.### 2005-2-22 05:30:20 GMT

Comments
SUGGESTED FIX Index: src/share/classes/com/sun/tools/javac/jvm/Code.java ========================================================== @@ -1393,9 +1393,9 @@ /** Force stat begin eagerly */ public void markStatBegin() { - int line = lineMap.getLineNumber(pendingStatPos); pendingStatPos = Position.NOPOS; if (alive && lineDebugInfo) { + int line = lineMap.getLineNumber(pendingStatPos); char cp1 = (char)cp; char line1 = (char)line; if (cp1 == cp && line1 == line) ###@###.### 2005-2-22 05:30:20 GMT
20-02-2005

EVALUATION This must be fixed immediately. ###@###.### 2005-2-20 00:09:42 GMT
20-02-2005