gcj/275: wrong output filename for static inner interfaces in interfaces

osk@hem.passagen.se osk@hem.passagen.se
Sat Jul 1 12:40:00 GMT 2000


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


More information about the Java-prs mailing list