java/5923: gcj -C generates incorrect bytecode

tromey@redhat.com tromey@redhat.com
Tue Mar 12 09:26:00 GMT 2002


>Number:         5923
>Category:       java
>Synopsis:       gcj -C generates incorrect bytecode
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 12 09:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tom Tromey
>Release:        current cvs
>Organization:
>Environment:

>Description:
Compile this program with gcj -C:

import java.awt.*;
public class Foo
{
  public static void main (String[] args)
  {
    System.out.println (BorderLayout.NORTH);
  }
}


Now run it with gij (or "java").
It will print "N".  It should print "North".
The constants in the bytecode output are incorrect.
>How-To-Repeat:

>Fix:

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



More information about the Java-prs mailing list