[Bug java/15714] New: InnerClasses attribute mishandled

tromey at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri May 28 19:16:00 GMT 2004


The InnerClasses attribute in a .class file must have
an entry for any nested class referenced by the .class file.
Currently gcj does not do this.  For instance, from
java.util.AbstractMap:

Attribute "InnerClasses", length:26
  inner: java.util.AbstractMap$BasicMapEntry, access flags: 0x8 static, outer
class: java.util.AbstractMap
  inner: java.util.AbstractMap$3 (anonymous), access flags: 0x12 private final,
outer class: <constant pool index 0 not in range>
  inner: java.util.AbstractMap$1 (anonymous), access flags: 0x12 private final,
outer class: <constant pool index 0 not in range>


However, this class refers to :

 29: checkcast <Class java.util.Map$Entry>
 32: invokeinterface <InterfaceMethod java.util.Map$Entry.getKey
()java.lang.Object> nargs:1

-- 
           Summary: InnerClasses attribute mishandled
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15714



More information about the Java-prs mailing list