Access flags for inner classes

Michael Koch konqueror@gmx.de
Wed Feb 26 22:23:00 GMT 2003


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



More information about the Java mailing list