WW-5337 Revert Object special handling

This commit is contained in:
Kusal Kithul-Godage
2023-08-21 23:58:24 +10:00
parent 72a5d21332
commit b0f1ef1f8b
@@ -255,7 +255,7 @@ public class SecurityMemberAccess implements MemberAccess {
}
protected boolean isClassExcluded(Class<?> clazz) {
if (clazz == Class.class && !allowStaticFieldAccess) {
if (clazz == Object.class || clazz == Class.class && !allowStaticFieldAccess) {
return true;
}
return excludedClasses.contains(clazz);