8010823: DefaultMethodTest.testReflectCall fails with new lambda VM
Summary: Fix lambda test
Reviewed-by: jjg
--- a/langtools/test/tools/javac/lambdaShapes/org/openjdk/tests/vm/DefaultMethodsTest.java Mon Apr 08 15:51:41 2013 +0100
+++ b/langtools/test/tools/javac/lambdaShapes/org/openjdk/tests/vm/DefaultMethodsTest.java Mon Apr 08 15:52:05 2013 +0100
@@ -427,6 +427,8 @@
*/
public void testReflectCall() {
Interface I = new Interface("I", DefaultMethod.std("99"));
+ //workaround accessibility issue when loading C with DirectedClassLoader
+ I.addAccessFlag(AccessFlag.PUBLIC);
Class C = new Class("C", I);
Compiler.Flags[] flags = this.verbose ?