[lworld] RFR: 8267503: [lworld] [lw3] NPE message thrown by checkcast is incorrect
David Simms
dsimms at openjdk.java.net
Fri May 21 06:42:49 UTC 2021
On Thu, 20 May 2021 17:32:22 GMT, Frederic Parain <fparain at openjdk.org> wrote:
> Please review those changes fixing the error message for NullPointerExceptions thrown by checkcast.
>
> Without the fix:
> java.lang.NullPointerException: There cannot be a NullPointerException at bci 23 of method void NPECheckcastTest.main(java.lang.String[])
>
> With the fix:
> java.lang.NullPointerException: Cannot cast to null-free type "QNPECheckcastTest$C1;" because "<local2\>" is null
>
> Thank you,
>
> Fred
Looks good to me
-------------
Marked as reviewed by dsimms (Committer).
PR: https://git.openjdk.java.net/valhalla/pull/418
More information about the valhalla-dev
mailing list