test/tools/javac/meth/InvokeDyn.java

changeset 573
005bec70ca27
parent 554
9d9f26857129
parent 571
f0e3ec1f9d9f
child 674
584365f256a7
equal deleted inserted replaced
570:ab1356297c67 573:005bec70ca27
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);

mercurial