Java: Enable accessibility checks for static inner classes

Bryce McKinlay mckinlay@redhat.com
Sun Jun 27 02:43:00 GMT 2004


Static inner classes are subject to the same member accessibility checks 
as regular inner classes, however gcj is currently not calling 
check_nested_class_access() for static inner classes. This patch also 
fixes a bug that was exposed by enabling this check: JDEP_ENCLOSING (the 
context from which the access is being attempted - should really be 
called JDEP_CONTEXT ??) was being set to NULL_TREE for a top level class 
extending a static inner class. The fix is to make "extends" behave the 
same as "implements" and anonymous inner class dependencies.

No testsuite regressions, and a Jacks XPASS for 8.1.3-superclass-6.

OK to commit?

Bryce

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcj-static-inner-access-check.patch
Type: text/x-patch
Size: 1417 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040627/d55bb57e/attachment.bin>


More information about the Java-patches mailing list