1.1 --- a/src/share/vm/runtime/reflection.cpp Thu Nov 01 13:05:47 2012 +0100 1.2 +++ b/src/share/vm/runtime/reflection.cpp Thu Oct 11 12:25:42 2012 -0400 1.3 @@ -472,6 +472,12 @@ 1.4 return true; 1.5 } 1.6 1.7 + // Also allow all accesses from 1.8 + // java/lang/invoke/MagicLambdaImpl subclasses to succeed trivially. 1.9 + if (current_class->is_subclass_of(SystemDictionary::lambda_MagicLambdaImpl_klass())) { 1.10 + return true; 1.11 + } 1.12 + 1.13 return can_relax_access_check_for(current_class, new_class, classloader_only); 1.14 } 1.15 1.16 @@ -564,6 +570,12 @@ 1.17 return true; 1.18 } 1.19 1.20 + // Also allow all accesses from 1.21 + // java/lang/invoke/MagicLambdaImpl subclasses to succeed trivially. 1.22 + if (current_class->is_subclass_of(SystemDictionary::lambda_MagicLambdaImpl_klass())) { 1.23 + return true; 1.24 + } 1.25 + 1.26 return can_relax_access_check_for( 1.27 current_class, field_class, classloader_only); 1.28 }