< prev index next >

src/java.base/share/classes/jdk/internal/reflect/ReflectionFactory.java

Print this page
rev 51057 : 8206865: RMI activation tests fail with InvalidClassException
Reviewed-by: darcy, alanb

*** 449,458 **** --- 449,461 ---- for (Constructor<?> ctor : superCl.getDeclaredConstructors()) { if ((ctor.getModifiers() & Modifier.PRIVATE) == 0) { return true; } } + if (Reflection.areNestMates(cl, superCl)) { + return true; + } return false; } else { // sanity check to ensure the parent is protected or public if ((superCl.getModifiers() & (Modifier.PROTECTED | Modifier.PUBLIC)) == 0) { return false;
< prev index next >