This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

java/5057: gcj -C erroneously omits <clinit>



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]