1.1 --- a/src/jdk/internal/dynalink/beans/AbstractJavaLinker.java Tue Jul 23 18:28:58 2013 +0200 1.2 +++ b/src/jdk/internal/dynalink/beans/AbstractJavaLinker.java Wed Jul 24 11:13:24 2013 +0200 1.3 @@ -292,8 +292,6 @@ 1.4 return new SimpleDynamicMethod(unreflectSafely(m), member.getDeclaringClass(), member.getName()); 1.5 } 1.6 1.7 - private static final Lookup publicLookup = new Lookup(MethodHandles.publicLookup()); 1.8 - 1.9 /** 1.10 * Unreflects a method handle from a Method or a Constructor using safe (zero-privilege) unreflection. Should be 1.11 * only used for methods and constructors that are not caller sensitive. If a caller sensitive method were 1.12 @@ -305,13 +303,13 @@ 1.13 private static MethodHandle unreflectSafely(AccessibleObject m) { 1.14 if(m instanceof Method) { 1.15 final Method reflMethod = (Method)m; 1.16 - final MethodHandle handle = publicLookup.unreflect(reflMethod); 1.17 + final MethodHandle handle = Lookup.PUBLIC.unreflect(reflMethod); 1.18 if(Modifier.isStatic(reflMethod.getModifiers())) { 1.19 return StaticClassIntrospector.editStaticMethodHandle(handle); 1.20 } 1.21 return handle; 1.22 } 1.23 - return StaticClassIntrospector.editConstructorMethodHandle(publicLookup.unreflectConstructor((Constructor<?>)m)); 1.24 + return StaticClassIntrospector.editConstructorMethodHandle(Lookup.PUBLIC.unreflectConstructor((Constructor<?>)m)); 1.25 } 1.26 1.27 private static DynamicMethod mergeMethods(SingleDynamicMethod method, DynamicMethod existing, Class<?> clazz, String name) {