equal
deleted
inserted
replaced
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 } |