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/275: wrong output filename for static inner interfaces in interfaces



>Number:         275
>Category:       gcj
>Synopsis:       wrong output filename for static inner interfaces in interfaces
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 01 12:40:02 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Oskar Liljeblad
>Release:        unknown-1.0
>Organization:
>Environment:
Debian GNU/Linux
GNU libc 2.1.3
gcc 2.96 snapshot 20000612
libgcj snapshot 2000-06-18
>Description:
Inner static interfaces in interfaces should be compiled into a
java bytecode file named 'Outer$Inner.class', but is compiled into
'Inner.class'.

Consider this example:

------------------------------
$ cat >Map.java
public interface Map {
  public static interface Entry { }
}
^D
$ gcj -C Map.java
$ ls -l *.class
-rw-r--r--    1 usel     usel          133 Jun 21 14:25 Entry.class
-rw-r--r--    1 usel     usel          129 Jun 21 14:25 Map.class
$ rm *.class
$ javac Map.java
$ ls -l *.class
-rw-r--r--    1 usel     usel          212 Jun 21 14:26 Map$Entry.class
-rw-r--r--    1 usel     usel          212 Jun 21 14:26 Map.class
$
------------------------------

Oskar Liljeblad (osk@hem.passagen.se)
>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]