changeset 48983:fec5471fb817 condy

Ensure test does not use hardcoded method (found by Claes).
author psandoz
date Mon, 22 Jan 2018 08:59:17 -0800
parents e0638fc9ed64
children eb5bab548d7a 58fc637a8f77
files test/jdk/java/lang/invoke/condy/CondyNestedTest.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/java/lang/invoke/condy/CondyNestedTest.java	Mon Jan 22 16:54:43 2018 +0100
+++ b/test/jdk/java/lang/invoke/condy/CondyNestedTest.java	Mon Jan 22 08:59:17 2018 -0800
@@ -274,7 +274,7 @@
     }
 
     void test(String methodName, Class<? extends Throwable>... ts) throws Exception {
-        Method m = c.getMethod("indy_bsm_condy_bsm");
+        Method m = c.getMethod(methodName);
         m.setAccessible(true);
         test(m, ts);
     }