Skip to content


Browse files Browse the repository at this point in the history
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 424d7d6
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -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);
Expand Down

1 comment on commit 424d7d6

Copy link

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.