changeset 51903:23167d80e0f2

8206865: RMI activation tests fail with InvalidClassException Reviewed-by: darcy, alanb, mchung
author smarks
date Fri, 20 Jul 2018 14:34:51 -0700
parents e5c3953c5f88
children b65916c52e3c
files src/java.base/share/classes/jdk/internal/reflect/ReflectionFactory.java test/jdk/ProblemList.txt
diffstat 2 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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