diff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotTypePrimitive.java @ 7015:62818f156081

added ResolvedJavaType.isClass(Class c) to replace some uses of ResolvedJavaType.toJava() added MetaAccessProviderTest - more meta API tests to come
author Doug Simon <doug.simon@oracle.com>
date Fri, 23 Nov 2012 15:30:00 +0100
parents e54fcd0405f6
children dd81042f4eb1
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotTypePrimitive.java	Fri Nov 23 09:02:12 2012 +0100
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotTypePrimitive.java	Fri Nov 23 15:30:00 2012 +0100
@@ -167,6 +167,11 @@
     }
 
     @Override
+    public boolean isClass(Class c) {
+        return c == javaMirror;
+    }
+
+    @Override
     public ResolvedJavaType resolve(ResolvedJavaType accessingClass) {
         return this;
     }