WIP on Java8. Looking at lambda reloading first (required invokedynamic handling)

This commit is contained in:
Andy Clement
2014-02-13 10:39:32 -08:00
parent 8dff505b88
commit 9774e2a0d4
64 changed files with 745 additions and 140 deletions

Binary file not shown.

View File

@@ -0,0 +1,12 @@
package basic;
public class FirstClass {
public static void main(String[] args) {
System.out.println("This is Java8");
}
public static int run() {
return 8;
}
}

View File

@@ -0,0 +1,16 @@
package basic;
public class LambdaA {
public interface Foo { int m(); }
public static void main(String[] args) {
run();
}
public static int run() {
Foo f = null;
f = () -> 77;
return f.m();
}
}

View File

@@ -0,0 +1,16 @@
package basic;
public class LambdaA2 {
public interface Foo { int m(); }
public static void main(String[] args) {
run();
}
public static int run() {
Foo f = null;
f = () -> 88;
return f.m();
}
}