|
Relates :
|
|
|
Relates :
|
Originally reported here:
https://twitter.com/rafaelcodes/status/572718220047728640
Indeed, the genNullCheck does:
/** Generate a null check from the object value at stack top. */
private void genNullCheck(DiagnosticPosition pos) {
callMethod(pos, syms.objectType, names.getClass,
List.<Type>nil(), false);
code.emitop0(pop);
}
This may cause the debugging problems due to JDK-8073432.
We might want to switch to Objects.requireNonNull, or generating the explicit NPE check instead.
|