Summary
Make MethodTypeDescImpl.resolveConstantDesc
throw ClassNotFoundException
instead of unchecked TypeNotPresentException
.
Problem
ConstantDesc.resolveConstantDesc
specifies that it throws ReflectiveOperationException
upon resolution failure, but MethodTypeDescImpl
throws TypeNotPresentException
if it encounters an unresolvable ClassDesc
entry. This is in violation of the specification.
Solution
Make MethodTypeDescImpl.resolveConstantDesc
throw ClassNotFoundException
, which is a type of ReflectiveOperationException
.
Specification
No change in specification.
- csr of
-
JDK-8304929 MethodTypeDesc throws an unchecked exception than ReflectiveOperationException when a component class cannot be resolved
-
- Closed
-