//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;
// " 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;