java/5057: gcj -C erroneously omits <clinit>
Mon Oct 29 03:46: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
>Originator:     Tom Tromey <>
>Release:        current cvs trunk

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.




More information about the Java-prs mailing list