Skip to content
Permalink
Browse files
8252881: [JVMCI] ResolvedJavaType.resolveMethod fails in fastdebug wh…
…en invoked with a constructor

Reviewed-by: never
  • Loading branch information
Doug Simon committed Sep 30, 2020
1 parent 2a406f3 commit 424d7d6485735d02e4ee10b2b5f6ab059025d736
@@ -479,6 +479,11 @@ public ResolvedJavaMethod resolveMethod(ResolvedJavaMethod method, ResolvedJavaT
if (!method.getDeclaringClass().isAssignableFrom(this)) {
return null;
}
if (method.isConstructor()) {
// Constructor calls should have been checked in the verifier and method's
// declaring class is assignable from this (see above) so treat it as resolved.
return method;
}
HotSpotResolvedJavaMethodImpl hotSpotMethod = (HotSpotResolvedJavaMethodImpl) method;
HotSpotResolvedObjectTypeImpl hotSpotCallerType = (HotSpotResolvedObjectTypeImpl) callerType;
return compilerToVM().resolveMethod(this, hotSpotMethod, hotSpotCallerType);

1 comment on commit 424d7d6

@bridgekeeper

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on 424d7d6 Sep 30, 2020

Please sign in to comment.