[lworld] RFR: 8267503: [lworld] [lw3] NPE message thrown by checkcast is incorrect

Frederic Parain fparain at openjdk.java.net
Fri May 21 12:02:03 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

Mr Simms,
thank you for the review.



PR: https://git.openjdk.java.net/valhalla/pull/418

More information about the valhalla-dev mailing list