mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8336934: Clean up JavaLangReflectAccess
Reviewed-by: rriggs, darcy
This commit is contained in:
parent
d72810794b
commit
88ccbb6091
6 changed files with 35 additions and 168 deletions
|
@ -173,21 +173,6 @@ public final class Method extends Executable {
|
|||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* Make a copy of a leaf method.
|
||||
*/
|
||||
Method leafCopy() {
|
||||
if (this.root == null)
|
||||
throw new IllegalArgumentException("Can only leafCopy a non-root Method");
|
||||
|
||||
Method res = new Method(clazz, name, parameterTypes, returnType,
|
||||
exceptionTypes, modifiers, slot, signature,
|
||||
annotations, parameterAnnotations, annotationDefault);
|
||||
res.root = root;
|
||||
res.methodAccessor = methodAccessor;
|
||||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws InaccessibleObjectException {@inheritDoc}
|
||||
* @throws SecurityException {@inheritDoc}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue