< prev index next >

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

Print this page

        

@@ -84,18 +84,16 @@
             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.
+        if (!cce) {
             throw new AssertionError("Unexpected CCE behavior");
         }
     }
 }
< prev index next >