modified: ../../test/bytecode/LambdaTest.java

This commit is contained in:
Martin Plümicke 2018-07-18 17:56:20 +02:00
parent fe99db81b3
commit 448d3e04f8

View File

@ -35,7 +35,7 @@ public class LambdaTest {
Method m = classToTest.getDeclaredMethod("m");
Class<?> lambda = m.invoke(instanceOfClass).getClass();
Method apply = lambda.getMethod("apply", Object.class);
Integer result = (Integer) apply.invoke(lambda, new Integer(77)); //laeuft nicht, vermutlich weil Lambda-Ausdruck private
Integer result = (Integer) apply.invoke(lambda, new Integer(77)); //laeuft nicht, vermutlich weil Lambda-Ausdrucks Methode "apply" private ist.
assertEquals(77, result);
}