# HG changeset patch # User rraghavan # Date 1511715913 28800 # Node ID a3d565e72f516ae83d4dc46975b171e831ecb4d7 # Parent 27d388ff3a8998d31729fdf2edaa9e7e73a31a1a 8191313: compiler/runtime/SpreadNullArg.java fails in tier1 Summary: corrected SpreadNullArg.java test to expect NullPointerException after 8157246 fix Reviewed-by: dcubed, mchung diff -r 27d388ff3a89 -r a3d565e72f51 test/hotspot/jtreg/compiler/runtime/SpreadNullArg.java --- a/test/hotspot/jtreg/compiler/runtime/SpreadNullArg.java Sat Nov 25 20:28:10 2017 +0100 +++ b/test/hotspot/jtreg/compiler/runtime/SpreadNullArg.java Sun Nov 26 09:05:13 2017 -0800 @@ -49,8 +49,8 @@ mh_spread_target = MethodHandles.lookup().findStatic(SpreadNullArg.class, "target_spread_arg", mt_ref_arg); result = (int) mh_spreadInvoker.invokeExact(mh_spread_target, (Object[]) null); - throw new Error("Expected IllegalArgumentException was not thrown"); - } catch (IllegalArgumentException e) { + throw new Error("Expected NullPointerException was not thrown"); + } catch (NullPointerException e) { System.out.println("Expected exception : " + e); } catch (Throwable e) { throw new Error(e); @@ -58,7 +58,7 @@ if (result != 42) { throw new Error("result [" + result - + "] != 42 : Expected IllegalArgumentException was not thrown?"); + + "] != 42 : Expected NullPointerException was not thrown?"); } }