From 9eed4bc0da037bce1156cd9bb9709104354fd4c6 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Wed, 18 Dec 2002 05:47:47 +0000 Subject: [PATCH] privileged from inners --- .../jdt/internal/compiler/lookup/ReferenceBinding.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java index 69507b775..75a7662ae 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java @@ -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; -- 2.39.5