gcj/264: "bad class index 0" error compiling javac/jikes anonymous class bytecode

bryce@albatross.co.nz bryce@albatross.co.nz
Tue Jun 20 05:30:00 GMT 2000


>Number:         264
>Category:       gcj
>Synopsis:       "bad class index 0" error compiling javac/jikes anonymous class bytecode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 20 05:30:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Bryce McKinlay
>Release:        gcc version 2.96 20000608 (experimental)
>Organization:
>Environment:
linux
>Description:
The bytecode for the following test case, as produced
by jikes or javac, fails to compile in gcj:

$ gcj -c PR264*.class
PR264.java:0: bad class index 0
PR264.java: In class `PR264':
PR264.java: In method `main(java.lang.String[])':
PR264.java:0: bad class index 0
>How-To-Repeat:
public class PR264
{
  public static void main(String[] args)
  {
    Object obj = new Object() {};
  }
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Java-prs mailing list