7052782: Two langtools regression tests fail due to fix for 7034977 which removed the invokeGeneric method
authorjjh
Thu, 09 Jun 2011 09:13:50 -0700
changeset 9882 a89465baa9fd
parent 9817 8294c99e685a
child 9883 84a2bf4ba11b
child 9894 a0ec54adb051
7052782: Two langtools regression tests fail due to fix for 7034977 which removed the invokeGeneric method Summary: Change the tests to call invoke instead of invokeGeneric Reviewed-by: jrose, mcimadamore
langtools/test/tools/javac/meth/InvokeMH.java
langtools/test/tools/javac/meth/XlintWarn.java
--- a/langtools/test/tools/javac/meth/InvokeMH.java	Wed Jul 05 17:46:02 2017 +0200
+++ b/langtools/test/tools/javac/meth/InvokeMH.java	Thu Jun 09 09:13:50 2011 -0700
@@ -77,23 +77,23 @@
         Object o; String s; int i;  // for return type testing
 
         // next five must have sig = (*,*)*
-        o = mh_SiO.invokeGeneric((Object)"world", (Object)123);
-        mh_SiO.invokeGeneric((Object)"mundus", (Object)456);
+        o = mh_SiO.invoke((Object)"world", (Object)123);
+        mh_SiO.invoke((Object)"mundus", (Object)456);
         Object k = "kosmos";
-        o = mh_SiO.invokeGeneric(k, 789);
-        o = mh_SiO.invokeGeneric(null, 000);
-        o = mh_SiO.invokeGeneric("arda", -123);
+        o = mh_SiO.invoke(k, 789);
+        o = mh_SiO.invoke(null, 000);
+        o = mh_SiO.invoke("arda", -123);
 
         // sig = ()String
-        o = mh_vS.invokeGeneric();
+        o = mh_vS.invoke();
 
         // sig = ()int
-        i = (int) mh_vi.invokeGeneric();
-        o = (int) mh_vi.invokeGeneric();
-        mh_vi.invokeGeneric();
+        i = (int) mh_vi.invoke();
+        o = (int) mh_vi.invoke();
+        mh_vi.invoke();
 
         // sig = ()void
-        mh_vv.invokeGeneric();
-        o = mh_vv.invokeGeneric();
+        mh_vv.invoke();
+        o = mh_vv.invoke();
     }
 }
--- a/langtools/test/tools/javac/meth/XlintWarn.java	Wed Jul 05 17:46:02 2017 +0200
+++ b/langtools/test/tools/javac/meth/XlintWarn.java	Thu Jun 09 09:13:50 2011 -0700
@@ -35,19 +35,19 @@
 class XlintWarn {
     void test(MethodHandle mh) throws Throwable {
         int i1 = (int)mh.invokeExact();
-        int i2 = (int)mh.invokeGeneric();
+        int i2 = (int)mh.invoke();
         int i3 = (int)mh.invokeWithArguments();
     }
 
     void test2(MethodHandle mh) throws Throwable {
         int i1 = (int)(mh.invokeExact());
-        int i2 = (int)(mh.invokeGeneric());
+        int i2 = (int)(mh.invoke());
         int i3 = (int)(mh.invokeWithArguments());
     }
 
     void test3(MethodHandle mh) throws Throwable {
         int i1 = (int)((mh.invokeExact()));
-        int i2 = (int)((mh.invokeGeneric()));
+        int i2 = (int)((mh.invoke()));
         int i3 = (int)((mh.invokeWithArguments()));
     }
 }