langtools/test/tools/javac/meth/InvokeDynTrans.java
changeset 7330 7c670eebe55c
parent 6592 dc56420a69bc
equal deleted inserted replaced
7329:8a5601394af4 7330:7c670eebe55c
     1 /*
     1 /*
     2  * Copyright (c) 2008-2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    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);
    56         InvokeDynamic.<void>#"yow: what I mean to say is, please treat this one specially"(null);
    56         //InvokeDynamic.<void>#"yow: what I mean to say is, please treat this one specially"(null);
    57         InvokeDynamic.<int>invoke("goodbye");
    57         InvokeDynamic.<int>invoke("goodbye");
    58     }
    58     }
    59 }
    59 }