RFR: 8298177: Various java.lang.invoke cleanups [v3]

Jorn Vernee jvernee at openjdk.org
Tue Dec 6 19:26:08 UTC 2022


On Tue, 6 Dec 2022 16:25:12 GMT, Claes Redestad <redestad at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/invoke/MemberName.java line 578:
>> 
>>> 576:             throw new LinkageError(m.toString());
>>> 577:         }
>>> 578:         assert(isResolved());
>> 
>> I don't see why this can be removed. Can you explain?
>
> the `if (clazz == null)` block above either returns or throws an error, so intellij was marking this as always true.

Ok, I see. Thanks

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

PR: https://git.openjdk.org/jdk/pull/11540


More information about the core-libs-dev mailing list