# HG changeset patch # User Thomas Wuerthinger # Date 1362500525 -3600 # Node ID 6b3c05de9521111e8534aeacd5df78273a5b829d # Parent 85bd81dba8fc4f91865554010838ad8382b2258e Fix array copy intrinsification test. diff -r 85bd81dba8fc -r 6b3c05de9521 graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/ArrayCopyIntrinsificationTest.java --- a/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/ArrayCopyIntrinsificationTest.java Tue Mar 05 17:21:54 2013 +0100 +++ b/graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/ArrayCopyIntrinsificationTest.java Tue Mar 05 17:22:05 2013 +0100 @@ -51,7 +51,7 @@ if (node instanceof Invoke) { Invoke invoke = (Invoke) node; Assert.assertTrue(invoke.callTarget() instanceof DirectCallTargetNode); - DirectCallTargetNode directCall = (DirectCallTargetNode) invoke.callTarget(); + AbstractCallTargetNode directCall = (AbstractCallTargetNode) invoke.callTarget(); Assert.assertTrue(directCall.target() instanceof JavaMethod); JavaMethod callee = (JavaMethod) directCall.target(); Assert.assertTrue(callee.getName().equals("")); @@ -64,7 +64,7 @@ for (Node node : graph.getNodes()) { if (node instanceof Invoke) { Invoke invoke = (Invoke) node; - DirectCallTargetNode directCall = (DirectCallTargetNode) invoke.callTarget(); + AbstractCallTargetNode directCall = (AbstractCallTargetNode) invoke.callTarget(); JavaMethod callee = (JavaMethod) directCall.target(); if (callee.getDeclaringClass().equals(runtime.lookupJavaType(System.class)) && callee.getName().equals("arraycopy")) { found = true;