changeset 51719:9071d2023859 condy-folding

fixes for regression test MethodHandleRefTest.java
author vromero
date Tue, 17 Jul 2018 13:28:17 -0700
parents 32532c96bc00
children e1f3672b8dc6
files test/jdk/java/lang/constant/MethodHandleRefTest.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/java/lang/constant/MethodHandleRefTest.java	Tue Jul 17 12:48:03 2018 -0700
+++ b/test/jdk/java/lang/constant/MethodHandleRefTest.java	Tue Jul 17 13:28:17 2018 -0700
@@ -205,8 +205,8 @@
 
         try { privateIMethodRef.resolveConstantDesc(LOOKUP); fail(); }
         catch (IllegalAccessException e) { /* expected */ }
-        try { privateIMethodRef.resolveConstantDesc(TestClass.LOOKUP); fail(); }
-        catch (IllegalAccessException e) { /* expected */ }
+        // this is passing after nestmates got pushed
+        privateIMethodRef.resolveConstantDesc(TestClass.LOOKUP);
         assertEquals(0, (int) privateIMethodRef.resolveConstantDesc(TestInterface.LOOKUP).invokeExact(instanceI, 5));
 
         try { privateStaticMethodRef.resolveConstantDesc(LOOKUP); fail(); }
@@ -215,8 +215,8 @@
 
         try { privateStaticIMethodRef.resolveConstantDesc(LOOKUP); fail(); }
         catch (IllegalAccessException e) { /* expected */ }
-        try { privateStaticIMethodRef.resolveConstantDesc(TestClass.LOOKUP); fail(); }
-        catch (IllegalAccessException e) { /* expected */ }
+        // this is passing after nestmates got pushed
+        privateStaticIMethodRef.resolveConstantDesc(TestClass.LOOKUP);
         assertEquals(0, (int) privateStaticIMethodRef.resolveConstantDesc(TestInterface.LOOKUP).invokeExact(5));
 
         MethodHandleDesc staticSetterRef = MethodHandleDesc.ofField(STATIC_SETTER, testClass, "sf", CR_int);