java/5057: gcj -C erroneously omits <clinit>
tromey@redhat.com
tromey@redhat.com
Sun Dec 9 18:38:00 GMT 2001
>Number: 5057
>Category: java
>Synopsis: gcj -C erroneously omits <clinit>
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 09 17:06:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Tom Tromey <tromey@redhat.com>
>Release: current cvs trunk
>Organization:
>Environment:
>Description:
Compile this class with `gcj -C':
public class t {
public static int x;
static {
x = 72;
}
public static void main (String[] args)
{
System.out.println (x);
}
}
Now run `jcf-dump -c' on the output.
Note that there is no <clinit> method.
This example works fine when I compile to native.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list