diff jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java @ 23373:802821d82a92

Rename isAllocationCloneable to isCloneableWithAllocation
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Tue, 03 May 2016 08:45:04 -0700
parents 45168ac6d3bc
children acae988d96ad
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java	Tue May 03 12:07:58 2016 +0200
+++ b/jvmci/jdk.vm.ci.runtime.test/src/jdk/vm/ci/runtime/test/TestResolvedJavaType.java	Tue May 03 08:45:04 2016 -0700
@@ -850,11 +850,11 @@
     }
 
     @Test
-    public void isAllocationCloneableTest() {
+    public void isCloneableWithAllocationTest() {
         ResolvedJavaType cloneable = metaAccess.lookupJavaType(Cloneable.class);
         for (Class<?> c : classes) {
             ResolvedJavaType type = metaAccess.lookupJavaType(c);
-            if (type.isAllocationCloneable()) {
+            if (type.isCloneableWithAllocation()) {
                 // Only Cloneable types should be allocation cloneable
                 assertTrue(c.toString(), cloneable.isAssignableFrom(type));
             }
@@ -864,7 +864,7 @@
          * platform but assume that at least totally trivial objects should be.
          */
         ResolvedJavaType trivialCloneable = metaAccess.lookupJavaType(TrivialCloneable.class);
-        assertTrue(trivialCloneable.toString(), trivialCloneable.isAllocationCloneable());
+        assertTrue(trivialCloneable.toString(), trivialCloneable.isCloneableWithAllocation());
     }
 
     @Test