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: Package-private access checking in GCJ 3.3


Ranjit> (BTW, we use the same bit for both ACC_SUPER and Ranjit> ACC_SYNCHRONIZED and these are the only two that share a
Ranjit> bit - is this by design or is this an oversight?)


Design.  See java.lang.reflect.Modifier -- these values are specified
by Java, not us.


*Except* for ACC_SUPER, everything else is there and has
the same value as defined by GCJ - what does ACC_SUPER mean?
Is it to specially flag references like "super.fooBar"?


Also read JVMS chapter 4 to see the history of these values. ACC_SUPER is used for classes (it affects how super.m() is resolved by the virtual machine). Note that a class is never marked synchronized; ACC_SYNCHRONIZED is used for methods, which are never marked super.


--
Eric Blake


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