8226533: JVMCI: findUniqueConcreteMethod should handle statically bindable methods directly
authordlong
Fri, 28 Jun 2019 16:50:14 -0400
changeset 55532 6546a2ae6773
parent 55531 c868b89c7dd9
child 55533 e6331cf74840
8226533: JVMCI: findUniqueConcreteMethod should handle statically bindable methods directly Reviewed-by: kvn, dlong Contributed-by: Doug Simon <doug.simon@oracle.com>
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java
--- a/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java	Fri Jun 28 20:46:25 2019 +0100
+++ b/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl.java	Fri Jun 28 16:50:14 2019 -0400
@@ -579,6 +579,10 @@
             // The type isn't known to implement the method.
             return null;
         }
+        if (resolvedMethod.canBeStaticallyBound()) {
+            // No assumptions are required.
+            return new AssumptionResult<>(resolvedMethod);
+        }
 
         ResolvedJavaMethod result = resolvedMethod.uniqueConcreteMethod(this);
         if (result != null) {