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]

Access flags for inner classes


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


japitools made me wonder if we set the access flags for inner classes 
correctly. E.g. java.awt.dnd.DropTargetContext.TransferableProxy is 
declared:

protected class DropTargetContext.TransferableProxy

Its access flags in SUNs class file are (from jcf-dump):

Access flags: 0x21 public super 
This class: 11=java.awt.dnd.DropTargetContext$TransferableProxy, 
super: 12=java.lang.Object

Sun makes the inner class public, but it was declared protected.

GCJ's access flags are as follows:

Access flags: 0x24 protected super
This class: 2=java.awt.dnd.DropTargetContext$TransferableProxy, super: 
4=java.lang.Object

Our class file says its protected (as in the source).

I dont know if this is a bug in gcj or in SUNs SDK but if it is a bug 
in gcj we should fix it.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+XTwcWSOgCCdjSDsRAihrAJ442LNRCCdKIIC4o1aG8xiXthqF3gCgia4r
aJ0kwFng+wLKVImNv8Oyb3I=
=G4s6
-----END PGP SIGNATURE-----


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