Lines Matching refs:null
18 * Test that null pointer exceptions are thrown by the VM.
39 NullPointerException npe = null;
45 ((Object) null).getClass();
53 ((Main) null).callSpecial(); // Test invokespecial.
61 ((Main) null).callFinal(); // Test invokevirtual on final.
68 ((Value) null).objectField.toString();
75 useInt(((Value) null).intField);
82 useFloat(((Value) null).floatField);
89 useLong(((Value) null).longField);
96 useDouble(((Value) null).doubleField);
103 ((Value) null).objectField = "Fisk";
110 ((Value) null).intField = 42;
117 ((Value) null).floatField = 42.0F;
124 ((Value) null).longField = 42L;
131 ((Value) null).doubleField = 42.0d;
138 useInt(((Value) null).byteField);
145 if (((Value) null).booleanField) { }
152 useInt(((Value) null).charField);
159 useInt(((Value) null).shortField);
166 ((Value) null).byteField = 42;
173 ((Value) null).booleanField = true;
180 ((Value) null).charField = '\u0042';
187 ((Value) null).shortField = 42;
194 ((Value) null).volatileObjectField.toString();
201 ((Value) null).volatileObjectField = "Fisk";
208 useInt(((Value) null).volatileIntField);
215 ((Value) null).volatileIntField = 42;
222 useFloat(((Value) null).volatileFloatField);
229 ((Value) null).volatileFloatField = 42.0F;
236 useLong(((Value) null).volatileLongField);
243 ((Value) null).volatileLongField = 42L;
250 useDouble(((Value) null).volatileDoubleField);
257 ((Value) null).volatileDoubleField = 42.0d;
264 useInt(((Value) null).volatileByteField);
271 ((Value) null).volatileByteField = 42;
278 if (((Value) null).volatileBooleanField) { }
285 ((Value) null).volatileBooleanField = true;
292 useInt(((Value) null).volatileCharField);
299 ((Value) null).volatileCharField = '\u0042';
306 useInt(((Value) null).volatileShortField);
313 ((Value) null).volatileShortField = 42;
320 ((Object[]) null)[0].toString();
327 useInt(((int[]) null)[0]);
334 useFloat(((float[]) null)[0]);
341 useLong(((long[]) null)[0]);
348 useDouble(((double[]) null)[0]);
355 ((Object[]) null)[0] = "Fisk";
362 ((int[]) null)[0] = 42;
369 ((float[]) null)[0] = 42.0F;
376 ((long[]) null)[0] = 42L;
383 ((double[]) null)[0] = 42.0d;
390 useInt(((byte[]) null)[0]);
397 if (((boolean[]) null)[0]) { }
404 useInt(((char[]) null)[0]);
411 useInt(((short[]) null)[0]);
418 ((byte[]) null)[0] = 42;
425 ((boolean[]) null)[0] = true;
432 ((char[]) null)[0] = '\u0042';
439 ((short[]) null)[0] = 42;
446 useInt(((Object[]) null).length);
453 useInt(((int[]) null).length);
460 useInt(((float[]) null).length);
467 useInt(((long[]) null).length);
474 useInt(((double[]) null).length);
481 useInt(((byte[]) null).length);
488 useInt(((boolean[]) null).length);
495 useInt(((char[]) null).length);
502 useInt(((short[]) null).length);
509 Interface i = null;
510 i.methodInterface(); // Test null on invokeinterface.
517 Object o = null;
518 o.toString(); // Test null on invokevirtual.
524 npe = null;
526 String s = null;
538 npe = null;
540 String s = null;