langtools/test/tools/javac/meth/InvokeMH.java
changeset 9882 a89465baa9fd
parent 9082 53409a3a93f8
child 23393 1698e8b53501
equal deleted inserted replaced
9817:8294c99e685a 9882:a89465baa9fd
    75                  MethodHandle mh_vi,
    75                  MethodHandle mh_vi,
    76                  MethodHandle mh_vv) throws Throwable {
    76                  MethodHandle mh_vv) throws Throwable {
    77         Object o; String s; int i;  // for return type testing
    77         Object o; String s; int i;  // for return type testing
    78 
    78 
    79         // next five must have sig = (*,*)*
    79         // next five must have sig = (*,*)*
    80         o = mh_SiO.invokeGeneric((Object)"world", (Object)123);
    80         o = mh_SiO.invoke((Object)"world", (Object)123);
    81         mh_SiO.invokeGeneric((Object)"mundus", (Object)456);
    81         mh_SiO.invoke((Object)"mundus", (Object)456);
    82         Object k = "kosmos";
    82         Object k = "kosmos";
    83         o = mh_SiO.invokeGeneric(k, 789);
    83         o = mh_SiO.invoke(k, 789);
    84         o = mh_SiO.invokeGeneric(null, 000);
    84         o = mh_SiO.invoke(null, 000);
    85         o = mh_SiO.invokeGeneric("arda", -123);
    85         o = mh_SiO.invoke("arda", -123);
    86 
    86 
    87         // sig = ()String
    87         // sig = ()String
    88         o = mh_vS.invokeGeneric();
    88         o = mh_vS.invoke();
    89 
    89 
    90         // sig = ()int
    90         // sig = ()int
    91         i = (int) mh_vi.invokeGeneric();
    91         i = (int) mh_vi.invoke();
    92         o = (int) mh_vi.invokeGeneric();
    92         o = (int) mh_vi.invoke();
    93         mh_vi.invokeGeneric();
    93         mh_vi.invoke();
    94 
    94 
    95         // sig = ()void
    95         // sig = ()void
    96         mh_vv.invokeGeneric();
    96         mh_vv.invoke();
    97         o = mh_vv.invokeGeneric();
    97         o = mh_vv.invoke();
    98     }
    98     }
    99 }
    99 }