langtools/test/tools/javac/meth/InvokeDyn.java
changeset 5738 c24b113fe4ac
parent 5520 86e4b9a9da40
parent 5736 ee0850472ca1
child 6592 dc56420a69bc
equal deleted inserted replaced
5735:3190f7182a90 5738:c24b113fe4ac
    45 package meth;
    45 package meth;
    46 
    46 
    47 import java.dyn.InvokeDynamic;
    47 import java.dyn.InvokeDynamic;
    48 
    48 
    49 public class InvokeDyn {
    49 public class InvokeDyn {
    50     void test() {
    50     void test() throws Throwable {
    51         Object x = "hello";
    51         Object x = "hello";
    52         InvokeDynamic.greet(x, "world", 123);
    52         InvokeDynamic.greet(x, "world", 123);
    53         InvokeDynamic.greet(x, "mundus", 456);
    53         InvokeDynamic.greet(x, "mundus", 456);
    54         InvokeDynamic.greet(x, "kosmos", 789);
    54         InvokeDynamic.greet(x, "kosmos", 789);
    55         InvokeDynamic.<String>cogitate(10.11121, 3.14);
    55         InvokeDynamic.<String>cogitate(10.11121, 3.14);