1.1 --- a/rt/emul/compact/src/main/java/sun/invoke/util/VerifyAccess.java Sat Aug 09 11:11:13 2014 +0200
1.2 +++ b/rt/emul/compact/src/main/java/sun/invoke/util/VerifyAccess.java Sun Aug 10 06:13:36 2014 +0200
1.3 @@ -27,7 +27,6 @@
1.4
1.5 import java.lang.reflect.Modifier;
1.6 import static java.lang.reflect.Modifier.*;
1.7 -import sun.reflect.Reflection;
1.8
1.9 /**
1.10 * This class centralizes information about the JVM's linkage access control.
1.11 @@ -144,7 +143,8 @@
1.12 // ...But arrays and primitives are synthesized with their own odd flags:
1.13 if (c.isArray() || c.isPrimitive())
1.14 return c.getModifiers();
1.15 - return Reflection.getClassAccessFlags(c);
1.16 + return c.getModifiers();
1.17 +// return Reflection.getClassAccessFlags(c);
1.18 }
1.19
1.20 /**
1.21 @@ -263,10 +263,11 @@
1.22 }
1.23
1.24 private static Class<?> getOutermostEnclosingClass(Class<?> c) {
1.25 - Class<?> pkgmem = c;
1.26 - for (Class<?> enc = c; (enc = enc.getEnclosingClass()) != null; )
1.27 - pkgmem = enc;
1.28 - return pkgmem;
1.29 + throw new IllegalStateException("Needed?");
1.30 +// Class<?> pkgmem = c;
1.31 +// for (Class<?> enc = c; (enc = enc.getEnclosingClass()) != null; )
1.32 +// pkgmem = enc;
1.33 +// return pkgmem;
1.34 }
1.35
1.36 private static boolean loadersAreRelated(ClassLoader loader1, ClassLoader loader2,