This is the mail archive of the java-prs@sourceware.cygnus.com 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]

gcj/46: Static inializers compiled incorrectly



>Number:         46
>Category:       gcj
>Synopsis:       Static inializers compiled incorrectly
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 15 23:10:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Geoff Berry
>Release:        egcs_latest_snapshot 1999-09-16
>Organization:
>Environment:
Linux 2.2.10
glibc 2.0.7
>Description:
Static initializers are not compiled correctly with gcj -C
(and I suspect the same is true for native compilation).
A <clinit> method is produced, but it simply returns.
>How-To-Repeat:
Compile the following class with gcj -C:

class test {
  static {
    System.out.println ("Running static initializer.");
  }
}

Run jcf-dump -c on the resulting class file.
>Fix:
Not today.
>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]