This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
gcj/275: wrong output filename for static inner interfaces in interfaces
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/275: wrong output filename for static inner interfaces in interfaces
- From: osk at hem dot passagen dot se
- Date: 1 Jul 2000 19:35:59 -0000
- Reply-To: osk at hem dot passagen dot se
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, osk@hem.passagen.se
>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: