8336934: Clean up JavaLangReflectAccess

Reviewed-by: rriggs, darcy
This commit is contained in:
Chen Liang 2024-08-21 01:05:41 +00:00
parent d72810794b
commit 88ccbb6091
6 changed files with 35 additions and 168 deletions

View file

@ -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}