lukaszlenart commented on code in PR #933:
URL: https://github.com/apache/struts/pull/933#discussion_r1597574627


##########
core/src/main/java/com/opensymphony/xwork2/ognl/SecurityMemberAccess.java:
##########
@@ -147,7 +147,7 @@ public boolean isAccessible(Map context, Object target, 
Member member, String pr
         if (target != null) {
             // Special case: Target is a Class object but not Class.class
             if (Class.class.equals(target.getClass()) && 
!Class.class.equals(target)) {
-                if (!isStatic(member)) {
+                if (!isStatic(member) && Arrays.stream(((Class<?>) 
target).getConstructors()).noneMatch(p -> 
p.getClass().equals(member.getClass()))) {

Review Comment:
   This is just a temporary solution to express where the problem is, @kusalk I 
count on your comment :)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to