mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8202113: Reflection API is causing caller classes to leak
Reviewed-by: alanb, plevart
This commit is contained in:
parent
8af434d695
commit
0e1bd1f99d
11 changed files with 434 additions and 16 deletions
|
@ -564,7 +564,6 @@ public class AccessibleObject implements AnnotatedElement {
|
|||
throw new AssertionError("All subclasses should override this method");
|
||||
}
|
||||
|
||||
|
||||
// Shared access checking logic.
|
||||
|
||||
// For non-public members or members in package-private classes,
|
||||
|
@ -674,4 +673,13 @@ public class AccessibleObject implements AnnotatedElement {
|
|||
}
|
||||
return printStackWhenAccessFails;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the root AccessibleObject; or null if this object is the root.
|
||||
*
|
||||
* All subclasses override this method.
|
||||
*/
|
||||
AccessibleObject getRoot() {
|
||||
throw new InternalError();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue