This commit is contained in:
Mikael Vidstedt 2019-07-03 15:47:39 -07:00
commit 7ffa6686b6
2 changed files with 3 additions and 4 deletions

View File

@ -569,4 +569,5 @@ b034d2dee5fc93d42a81b65e58ce3f91e42586ff jdk-13+23
43627549a488b7d0b4df8fad436e36233df89877 jdk-14+2
b7f68ddec66f996ae3aad03291d129ca9f02482d jdk-13+27
e64383344f144217c36196c3c8a2df8f588a2af3 jdk-14+3
1e95931e7d8fa7e3899340a9c7cb28dbea50c10c jdk-13+28
19d0b382f0869f72d4381b54fa129f1c74b6e766 jdk-14+4

View File

@ -837,10 +837,8 @@ final class HotSpotResolvedObjectTypeImpl extends HotSpotResolvedJavaType implem
// Primitive type resolution is context free.
return true;
}
if (elementType.getName().startsWith("Ljava/")) {
// Classes in a java.* package can only be defined by the
// boot class loader. This is enforced by ClassLoader.preDefineClass()
assert hasSameClassLoader(runtime().getJavaLangObject());
if (elementType.getName().startsWith("Ljava/") && hasSameClassLoader(runtime().getJavaLangObject())) {
// Classes in a java.* package defined by the boot class loader are always resolved.
return true;
}
HotSpotResolvedObjectTypeImpl otherMirror = ((HotSpotResolvedObjectTypeImpl) accessingClass);