hg: jdk9/hs/hotspot: 8058575: IllegalAccessError trying to access package-private class from VM anonymous class
harold.seigel at oracle.com
harold.seigel at oracle.com
Wed Sep 7 13:20:51 UTC 2016
Changeset: 274dc4b09989
Author: hseigel
Date: 2016-09-07 07:19 -0400
URL: http://hg.openjdk.java.net/jdk9/hs/hotspot/rev/274dc4b09989
8058575: IllegalAccessError trying to access package-private class from VM anonymous class
Summary: Put anonymous classes in unnamed package into host class's package. Throw exception if host class's package differs from anonymous class.
Reviewed-by: coleenp, acorn
! src/share/vm/classfile/classFileParser.cpp
! src/share/vm/classfile/classFileParser.hpp
! src/share/vm/classfile/klassFactory.cpp
! src/share/vm/classfile/klassFactory.hpp
! src/share/vm/classfile/systemDictionary.cpp
! src/share/vm/classfile/systemDictionary.hpp
! src/share/vm/classfile/verifier.cpp
! src/share/vm/oops/instanceKlass.hpp
! src/share/vm/prims/unsafe.cpp
! src/share/vm/runtime/reflection.cpp
! test/compiler/jsr292/CallSiteDepContextTest.java
+ test/runtime/defineAnonClass/DefineAnon.java
+ test/runtime/defineAnonClass/NestedUnsafe.java
+ test/runtime/defineAnonClass/NestedUnsafe2.java
More information about the jdk9-all-changes
mailing list