RFR 8216327 [lworld][c1] checkcast for value type should throw NullPointerException with null operand

Ioi Lam ioi.lam at oracle.com
Tue Jan 8 05:29:19 UTC 2019


Please review this small fix.

When we have something like this:

static Point test() {
     Object o = null;
     Point p = (Point)o;
     return p;

Deoptimize and let the interpreter generate the NPE.

- Ioi

More information about the valhalla-dev mailing list