< prev index next >

test/hotspot/jtreg/compiler/valhalla/valuetypes/TestIntrinsics.java

Print this page

        

*** 895,915 **** Asserts.assertEQ(((MyValue1)result).hash(), vt.hash()); result = test50(MyValue1[].class, va); Asserts.assertEQ(result, va); result = test50(MyValue1?[].class, vba); Asserts.assertEQ(result, vba); try { test50(MyValue1.class.asValueType(), null); throw new RuntimeException("should have thrown"); } catch (NullPointerException npe) { } try { - test50(MyValue1?[].class, va); - throw new RuntimeException("should have thrown"); - } catch (ClassCastException cce) { - } - try { test50(MyValue1[].class, vba); throw new RuntimeException("should have thrown"); } catch (ClassCastException cce) { } } --- 895,912 ---- Asserts.assertEQ(((MyValue1)result).hash(), vt.hash()); result = test50(MyValue1[].class, va); Asserts.assertEQ(result, va); result = test50(MyValue1?[].class, vba); Asserts.assertEQ(result, vba); + result = test50(MyValue1?[].class, va); + Asserts.assertEQ(result, va); try { test50(MyValue1.class.asValueType(), null); throw new RuntimeException("should have thrown"); } catch (NullPointerException npe) { } try { test50(MyValue1[].class, vba); throw new RuntimeException("should have thrown"); } catch (ClassCastException cce) { } }
< prev index next >