]> source.dussan.org Git - aspectj.git/commitdiff
privileged from inners
authorjhugunin <jhugunin>
Wed, 18 Dec 2002 05:47:47 +0000 (05:47 +0000)
committerjhugunin <jhugunin>
Wed, 18 Dec 2002 05:47:47 +0000 (05:47 +0000)
org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java

index 69507b775e0f02d84b0297a5dc0599f8c95e5227..75a7662ae1d2acaf0b24717edf98bf92bc22df82 100644 (file)
@@ -69,8 +69,8 @@ public final boolean canBeSeenBy(ReferenceBinding receiverType, SourceTypeBindin
 
        //System.err.println("trying to see: " + new String(sourceName));
 
-       if (invocationType.privilegedHandler != null) {
-               invocationType.privilegedHandler.notePrivilegedTypeAccess(this);
+       if (Scope.findPrivilegedHandler(invocationType) != null) {
+               Scope.findPrivilegedHandler(invocationType).notePrivilegedTypeAccess(this);
                return true;
        }
        return false;
@@ -153,9 +153,9 @@ public final boolean canBeSeenBy(Scope scope) {
 //                     " from " + new String(invocationType.sourceName));
 
 
-       if (invocationType.privilegedHandler != null) {
+       if (Scope.findPrivilegedHandler(invocationType) != null) {
                //System.err.println("    is privileged!");
-               invocationType.privilegedHandler.notePrivilegedTypeAccess(this);
+               Scope.findPrivilegedHandler(invocationType).notePrivilegedTypeAccess(this);
                return true;
        }
        return false;