8163533: jdk.vm.ci.hotspot.test.MethodHandleAccessProviderTest fails on jdk9/dev
Reviewed-by: shade
--- a/hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMethodHandleAccessProvider.java Thu Aug 11 17:02:27 2016 +0000
+++ b/hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMethodHandleAccessProvider.java Fri Aug 12 08:59:20 2016 -0700
@@ -109,6 +109,9 @@
if (!s.getReturnType(CLASS).equals(resultType)) {
return false;
}
+ if (s.getParameterCount(false) != parameterTypes.length) {
+ return false;
+ }
for (int i = 0; i < s.getParameterCount(false); ++i) {
if (!s.getParameterType(i, CLASS).equals(parameterTypes[i])) {
return false;