# HG changeset patch # User Christos Kotselidis # Date 1370450109 -7200 # Node ID 65e23a65de9df4f919f4da392a0119bc1d04d47c # Parent 5945a36ccba4c701c787221314f2cfee8db52552 Fix unit test diff -r 5945a36ccba4 -r 65e23a65de9d graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompressedOopTest.java --- a/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompressedOopTest.java Wed Jun 05 15:11:58 2013 +0200 +++ b/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/CompressedOopTest.java Wed Jun 05 18:35:09 2013 +0200 @@ -306,7 +306,7 @@ return result; } - public static void compareAndSwapTest(Object c1, Object c2, Object c3) { + public static void compareAndSwapTest(Object c1, Object c2, Object c3) throws ClassCastException{ @SuppressWarnings("unchecked") AtomicReference cas = (AtomicReference) c1; cas.compareAndSet(c2, c3);