RFR JDK-8244961: MethodHandles::privateLookupIn throws NPE when called during initPhase2
Paul Sandoz
paul.sandoz at oracle.com
Fri May 15 16:03:57 UTC 2020
+1
Paul.
> On May 14, 2020, at 1:12 PM, Mandy Chung <mandy.chung at oracle.com> wrote:
>
> MethodHandles::privateLookupIn should prepare for being called during early startup when the module of java.base classes are not yet assigned. This bug is uncovered by panama prototype converting NIO to use memory access API.
>
> The fix is very simple and move the call to Module::isNamed only if the caller module and target module are different:
> http://cr.openjdk.java.net/~mchung/jdk15/webrevs/8244961/webrev.00/
>
> Mandy
More information about the core-libs-dev
mailing list