This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch WW-5327-non-java-beans
in repository https://gitbox.apache.org/repos/asf/struts.git
The following commit(s) were added to refs/heads/WW-5327-non-java-beans by this
push:
new c7d88bea6 WW-5327 Makes deprecated setters operational
c7d88bea6 is described below
commit c7d88bea6f1f6be4d7ce76ec1bdd5310cd4e6176
Author: Lukasz Lenart <[email protected]>
AuthorDate: Mon Jul 31 10:52:42 2023 +0200
WW-5327 Makes deprecated setters operational
---
core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java
b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java
index 34fe3ae77..336312c89 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java
+++ b/core/src/main/java/com/opensymphony/xwork2/ognl/OgnlValueStack.java
@@ -484,7 +484,7 @@ public class OgnlValueStack implements Serializable,
ValueStack, ClearableValueS
@Deprecated
public void setAcceptProperties(Set<Pattern> acceptedProperties) {
- throw new UnsupportedOperationException("Please use
#useAcceptProperties instead!");
+ securityMemberAccess.useAcceptProperties(acceptedProperties);
}
public void useAcceptProperties(Set<Pattern> acceptedProperties) {
@@ -493,7 +493,7 @@ public class OgnlValueStack implements Serializable,
ValueStack, ClearableValueS
@Deprecated
public void setExcludeProperties(Set<Pattern> excludeProperties) {
- throw new UnsupportedOperationException("Please use
#useExcludeProperties instead!");
+ securityMemberAccess.useExcludeProperties(excludeProperties);
}
public void useExcludeProperties(Set<Pattern> excludeProperties) {