aboutsummaryrefslogtreecommitdiffstats
path: root/dcevm
diff options
context:
space:
mode:
authorIvan Dubrov <idubrov@guidewire.com>2014-04-30 11:27:13 -0700
committerIvan Dubrov <idubrov@guidewire.com>2014-04-30 11:27:13 -0700
commit6ddbbe7667d5b203685d94e6af52a211700029e6 (patch)
tree40f120af37b73460f135c1a7b39385c9f6630f06 /dcevm
parentf5af6abf4c8acf9942becfdbb3cbdb802894a89e (diff)
downloaddcevm-6ddbbe7667d5b203685d94e6af52a211700029e6.tar.gz
dcevm-6ddbbe7667d5b203685d94e6af52a211700029e6.zip
Updating MethodHandle test
Diffstat (limited to 'dcevm')
-rw-r--r--dcevm/src/test/java7/com/github/dcevm/test/methods/MethodHandleTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/dcevm/src/test/java7/com/github/dcevm/test/methods/MethodHandleTest.java b/dcevm/src/test/java7/com/github/dcevm/test/methods/MethodHandleTest.java
index 6bd0a096..979e5681 100644
--- a/dcevm/src/test/java7/com/github/dcevm/test/methods/MethodHandleTest.java
+++ b/dcevm/src/test/java7/com/github/dcevm/test/methods/MethodHandleTest.java
@@ -43,22 +43,22 @@ public class MethodHandleTest {
// Version 0
public static class A {
- public int value() {
+ public int method() {
return 1;
}
- public static int staticValue() {
+ public static int staticMethod() {
return 3;
}
}
// Version 1
public static class A___1 {
- public int value() {
+ public int method() {
return 2;
}
- public static int staticValue() {
+ public static int staticMethod() {
return 4;
}
}
@@ -74,7 +74,7 @@ public class MethodHandleTest {
assert __version__() == 0;
MethodHandles.Lookup lookup = MethodHandles.lookup();
- MethodHandle handle = lookup.findVirtual(A.class, "value", MethodType.methodType(int.class));
+ MethodHandle handle = lookup.findVirtual(A.class, "method", MethodType.methodType(int.class));
A a = new A();
assertEquals(1, handle.invoke(a));
@@ -93,7 +93,7 @@ public class MethodHandleTest {
assert __version__() == 0;
MethodHandles.Lookup lookup = MethodHandles.lookup();
- MethodHandle handle = lookup.findStatic(A.class, "staticValue", MethodType.methodType(int.class));
+ MethodHandle handle = lookup.findStatic(A.class, "staticMethod", MethodType.methodType(int.class));
A a = new A();
assertEquals(3, handle.invoke());