java/5923: gcj -C generates incorrect bytecode
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
>Originator:     Tom Tromey
>Release:        current cvs

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.



More information about the Java-prs mailing list