hg: jdk8u/jdk8u-dev/jdk: 8065552: setAccessible(true) on fields of Class may throw a SecurityException
daniel.fuchs at oracle.com
daniel.fuchs at oracle.com
Wed Dec 3 13:36:22 UTC 2014
Changeset: 905b48a93c2c
Author: dfuchs
Date: 2014-12-01 21:02 +0100
URL: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/905b48a93c2c
8065552: setAccessible(true) on fields of Class may throw a SecurityException
Summary: This fix hides the new private Class.classLoader field from reflection, rather than making it not accessible.
Reviewed-by: mchung, coffeys
! src/share/classes/java/lang/Class.java
! src/share/classes/java/lang/reflect/AccessibleObject.java
! src/share/classes/sun/reflect/Reflection.java
+ test/java/lang/Class/getDeclaredField/ClassDeclaredFieldsTest.java
More information about the jdk8u-dev-changes
mailing list