gcj bug (with -C ?)

Tom Tromey tromey@redhat.com
Sun Dec 9 16:57:00 GMT 2001


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.
I think this must be a regression.

It works when I compile to native.

I sent a PR for this.

Tom



More information about the Java mailing list