This is the mail archive of the java@gcc.gnu.org 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]
Other format: [Raw text]

Re: Access flags for inner classes


Inner classes have their attributes listed in two sections. At the header of the .class file, the JVMS requires that all classes be public or unmarked (default). The InnerClasses attribute is where the real listing is made. I'm not sure if japitools is reporting the difference between the two locations correctly.

Here is what SHOULD be happening:

class declared    .class header    InnerClasses
public              public            public
protected           public            protected
<default>           <default>         <default>
private             <default>         private

Tom Tromey wrote:
"Michael" == Michael Koch <konqueror at gmx dot de> writes:


Michael> japitools made me wonder if we set the access flags for inner Michael> classes correctly.

We may not.  ISTR bugs in this area in the past.  I don't know the
current status.  I think the thing to do would be to sit down with the
JLS and figure out what we're supposed to do.  Then see what we
actually do.

Looking at the Jacks tests in this area would also be helpful.

Tom



--
This signature intentionally left boring.

Eric Blake             ebb9 at email dot byu dot edu
  BYU student, free software programmer



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]