Package-private access checking in GCJ 3.3

Eric Blake ebb9@byu.net
Thu Jun 19 12:51:00 GMT 2003


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /