8206865: RMI activation tests fail with InvalidClassException
Reviewed-by: darcy, alanb, mchung
--- a/src/java.base/share/classes/jdk/internal/reflect/ReflectionFactory.java Fri Jul 20 11:39:52 2018 -0700
+++ b/src/java.base/share/classes/jdk/internal/reflect/ReflectionFactory.java Fri Jul 20 14:34:51 2018 -0700
@@ -451,6 +451,9 @@
return true;
}
}
+ if (Reflection.areNestMates(cl, superCl)) {
+ return true;
+ }
return false;
} else {
// sanity check to ensure the parent is protected or public
--- a/test/jdk/ProblemList.txt Fri Jul 20 11:39:52 2018 -0700
+++ b/test/jdk/ProblemList.txt Fri Jul 20 14:34:51 2018 -0700
@@ -595,12 +595,6 @@
java/rmi/registry/readTest/CodebaseTest.java 8173324 windows-all
-java/rmi/activation/ActivationSystem/modifyDescriptor/ModifyDescriptor.java 8206865 generic-all
-java/rmi/activation/Activatable/restartService/RestartService.java 8206865 generic-all
-java/rmi/activation/Activatable/restartCrashedService/RestartCrashedService.java 8206865 generic-all
-java/rmi/activation/Activatable/forceLogSnapshot/ForceLogSnapshot.java 8206865 generic-all
-java/rmi/activation/Activatable/checkRegisterInLog/CheckRegisterInLog.java 8206865 generic-all
-
############################################################################
# jdk_security