8010823: DefaultMethodTest.testReflectCall fails with new lambda VM
authormcimadamore
Mon, 08 Apr 2013 15:52:05 +0100
changeset 16806 e2fe9f7bf685
parent 16805 b419336382fd
child 16807 b442b47d3ae9
8010823: DefaultMethodTest.testReflectCall fails with new lambda VM Summary: Fix lambda test Reviewed-by: jjg
langtools/test/tools/javac/lambdaShapes/org/openjdk/tests/vm/DefaultMethodsTest.java
--- 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 ?