This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
java/5923: gcj -C generates incorrect bytecode
- From: tromey at redhat dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 12 Mar 2002 17:17:53 -0000
- Subject: java/5923: gcj -C generates incorrect bytecode
- Reply-to: tromey at redhat dot com
>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: