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

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

This pull request has now been integrated.

Changeset: ae4ce74e
Author:    Frederic Parain <fparain at openjdk.org>
URL:       https://git.openjdk.java.net/valhalla/commit/ae4ce74eb7de87cc57ebf869187484d757573ef6
Stats:     6 lines in 1 file changed: 6 ins; 0 del; 0 mod

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

Reviewed-by: dsimms

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

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


More information about the valhalla-dev mailing list