changeset 6403:0c7e719c8bf8

Unify the declared type of accessingClass parameter
author Christian Wimmer <christian.wimmer@oracle.com>
date Fri, 14 Sep 2012 13:58:17 -0700
parents 109af7f9490b
children 4ee4f44b55c6
files graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Signature.java graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotSignature.java
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Signature.java	Fri Sep 14 13:54:17 2012 -0700
+++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Signature.java	Fri Sep 14 13:58:17 2012 -0700
@@ -42,7 +42,7 @@
      * triggering any class loading or resolution.
      *
      * @param index the index into the parameters, with {@code 0} indicating the first parameter
-     * @param accessingClass the context of the type lookup. If accessing class is resolved, its class loader
+     * @param accessingClass the context of the type lookup. If accessing class is provided, its class loader
      *        is used to retrieve an existing resolved type. This value can be {@code null} if the caller does
      *        not care for a resolved type.
      * @return the {@code index}'th argument type
@@ -61,12 +61,12 @@
      * {@linkplain ResolvedJavaType resolved} type if possible but without
      * triggering any class loading or resolution.
      *
-     * @param accessingClass the context of the type lookup. If accessing class is resolved, its class loader
+     * @param accessingClass the context of the type lookup. If accessing class is provided, its class loader
      *        is used to retrieve an existing resolved type. This value can be {@code null} if the caller does
      *        not care for a resolved type.
      * @return the compiler interface type representing the return type
      */
-    JavaType returnType(JavaType accessingClass);
+    JavaType returnType(ResolvedJavaType accessingClass);
 
     /**
      * Gets the return kind of this signature.
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotSignature.java	Fri Sep 14 13:54:17 2012 -0700
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotSignature.java	Fri Sep 14 13:58:17 2012 -0700
@@ -134,7 +134,7 @@
     }
 
     @Override
-    public JavaType returnType(JavaType accessingClass) {
+    public JavaType returnType(ResolvedJavaType accessingClass) {
         if (returnTypeCache == null) {
             returnTypeCache = HotSpotGraalRuntime.getInstance().lookupType(returnType, (HotSpotResolvedJavaType) accessingClass, false);
         }