changeset 2391:b54122b9372d

8010823: DefaultMethodTest.testReflectCall fails with new lambda VM Summary: Fix lambda test Reviewed-by: jjg
author mcimadamore
date Mon, 08 Apr 2013 15:52:05 +0100
parents b71a61d39cf7
children e9d986381414
files test/tools/javac/lambdaShapes/org/openjdk/tests/vm/DefaultMethodsTest.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/lambdaShapes/org/openjdk/tests/vm/DefaultMethodsTest.java	Mon Apr 08 15:51:41 2013 +0100
+++ b/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 ?