8206865: RMI activation tests fail with InvalidClassException
authorsmarks
Fri, 20 Jul 2018 14:34:51 -0700
changeset 51220 23167d80e0f2
parent 51219 e5c3953c5f88
child 51221 b65916c52e3c
8206865: RMI activation tests fail with InvalidClassException Reviewed-by: darcy, alanb, mchung
src/java.base/share/classes/jdk/internal/reflect/ReflectionFactory.java
test/jdk/ProblemList.txt
--- 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