< prev index next >

test/langtools/tools/javac/valhalla/lworld-values/ArrayRelationsTest.java

Print this page

        

*** 84,101 **** throw new AssertionError("Missing NPE"); } la = new ArrayRelationsTest? [10]; - // NOTE: The following line should trigger a CCE, but doesn't ATM - this will - // start failing when the VM is fixed. Flip the condition then. cce = false; try { qa = (ArrayRelationsTest[]) la; } catch (ClassCastException c) { cce = true; } ! if (cce) { // <----- Flip this condition. throw new AssertionError("Unexpected CCE behavior"); } } } --- 84,99 ---- throw new AssertionError("Missing NPE"); } la = new ArrayRelationsTest? [10]; cce = false; try { qa = (ArrayRelationsTest[]) la; } catch (ClassCastException c) { cce = true; } ! if (!cce) { throw new AssertionError("Unexpected CCE behavior"); } } }
< prev index next >