RFR: 8304929: MethodTypeDesc throws an unchecked exception than ReflectiveOperationException when a component class cannot be resolved

Jorn Vernee jvernee at openjdk.org
Wed Jul 3 12:02:18 UTC 2024


On Tue, 2 Jul 2024 16:20:54 GMT, Chen Liang <liach at openjdk.org> wrote:

> Simple fix for `MethodTypeDescImpl`'s violation of `resolveConstantDesc` specification.

src/java.base/share/classes/jdk/internal/constant/MethodTypeDescImpl.java line 226:

> 224:                 }
> 225:             });
> 226:             mtype = mt;

Can you drop this intermediate variable, and just assign to `mtype` directly?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/19991#discussion_r1664072718


More information about the core-libs-dev mailing list