This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
java/5057: gcj -C erroneously omits <clinit>
- From: tromey at redhat dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 10 Dec 2001 00:55:47 -0000
- Subject: java/5057: gcj -C erroneously omits <clinit>
- Reply-to: tromey at redhat dot com
>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: