On Tue, 2 Jul 2024 16:20:54 GMT, Chen Liang <li...@openjdk.org> wrote:
> Simple fix for `MethodTypeDescImpl`'s violation of `resolveConstantDesc` > specification. src/java.base/share/classes/jdk/internal/constant/MethodTypeDescImpl.java line 228: > 226: mtype = mt; > 227: } catch (TypeNotPresentException ex) { > 228: throw (ClassNotFoundException) ex.getCause(); On a side note, I wonder if it's better to re-wrap the exception here as a `ReflectiveOperationException`, instead of just getting the cause. That will retain the entire stack trace. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/19991#discussion_r1664215860