# HG changeset patch # User Christian Wimmer # Date 1347656297 25200 # Node ID 0c7e719c8bf850bcd7837b00fabdd7de8a4abcff # Parent 109af7f9490bb04610c545d79e58d2510e563f0b Unify the declared type of accessingClass parameter diff -r 109af7f9490b -r 0c7e719c8bf8 graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Signature.java --- 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. diff -r 109af7f9490b -r 0c7e719c8bf8 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotSignature.java --- 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); }