From 30f75f2f17961d431f19b729a76fda2b44c292d3 Mon Sep 17 00:00:00 2001 From: Fayez Abu Alia Date: Wed, 25 Jul 2018 11:01:03 +0200 Subject: [PATCH] LambdaTest --- test/bytecode/LambdaTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/bytecode/LambdaTest.java b/test/bytecode/LambdaTest.java index fe49809c..c76663a8 100644 --- a/test/bytecode/LambdaTest.java +++ b/test/bytecode/LambdaTest.java @@ -35,6 +35,8 @@ public class LambdaTest { Method m = classToTest.getDeclaredMethod("m"); Class lambda = m.invoke(instanceOfClass).getClass(); Method apply = lambda.getMethod("apply", Object.class); + + // Damit man auf die Methode zugreifen kann apply.setAccessible(true); Integer i = 77;