mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +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
|
@ -55,11 +55,6 @@ public abstract class Executable extends AccessibleObject
|
|||
*/
|
||||
abstract byte[] getAnnotationBytes();
|
||||
|
||||
/**
|
||||
* Accessor method to allow code sharing
|
||||
*/
|
||||
abstract Executable getRoot();
|
||||
|
||||
/**
|
||||
* Does the Executable have generic information.
|
||||
*/
|
||||
|
@ -602,7 +597,7 @@ public abstract class Executable extends AccessibleObject
|
|||
if ((declAnnos = declaredAnnotations) == null) {
|
||||
synchronized (this) {
|
||||
if ((declAnnos = declaredAnnotations) == null) {
|
||||
Executable root = getRoot();
|
||||
Executable root = (Executable)getRoot();
|
||||
if (root != null) {
|
||||
declAnnos = root.declaredAnnotations();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue