Allow changing of lambda SAM types (alter method descriptor)

This is currently the 'slow' implementation and actually
slows down invokeinterface too - need to get the fast version
done...
This commit is contained in:
Andy Clement
2014-02-21 09:15:27 -08:00
parent e400e2da63
commit ad6a825688
9 changed files with 147 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
package basic;
public class LambdaI {
public interface Foo { String m(String in); }
public static void main(String[] args) {
run();
}
public static String run() {
Foo f = (s) -> s;
return f.m("a");
}
}

View File

@@ -0,0 +1,17 @@
package basic;
public class LambdaI2 {
public interface Foo { String m(String in, String in2); }
public static void main(String[] args) {
run();
}
public static String run() {
Foo f = (s,t) -> s+t;
return f.m("a", "b");
}
}