This is an automated email from the ASF dual-hosted git repository.

kusal pushed a commit to branch WW-5339-node-constr
in repository https://gitbox.apache.org/repos/asf/struts.git


The following commit(s) were added to refs/heads/WW-5339-node-constr by this 
push:
     new 38c0d7b6f WW-5339 Add HashMap instance test
38c0d7b6f is described below

commit 38c0d7b6ffc9a4c07fc11a14faacbb95af47439a
Author: Kusal Kithul-Godage <g...@kusal.io>
AuthorDate: Wed Aug 30 16:52:13 2023 +1000

    WW-5339 Add HashMap instance test
---
 core/src/test/java/com/opensymphony/xwork2/ognl/OgnlValueStackTest.java | 1 +
 core/src/test/resources/test-exclusion.xml                              | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/core/src/test/java/com/opensymphony/xwork2/ognl/OgnlValueStackTest.java 
b/core/src/test/java/com/opensymphony/xwork2/ognl/OgnlValueStackTest.java
index 90f855508..35c1eb9c4 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ognl/OgnlValueStackTest.java
+++ b/core/src/test/java/com/opensymphony/xwork2/ognl/OgnlValueStackTest.java
@@ -986,6 +986,7 @@ public class OgnlValueStackTest extends XWorkTestCase {
         vs = createValueStack(true);
 
         assertNull(vs.findValue("@java.math.RoundingMode@HALF_DOWN"));
+        assertNull(vs.findValue("#@java.util.HashMap@{}"));
     }
 
     /**
diff --git a/core/src/test/resources/test-exclusion.xml 
b/core/src/test/resources/test-exclusion.xml
index b35e96073..bd0eab6c9 100644
--- a/core/src/test/resources/test-exclusion.xml
+++ b/core/src/test/resources/test-exclusion.xml
@@ -23,5 +23,5 @@
         "-//Apache Software Foundation//DTD Struts Configuration 6.0//EN"
         "https://struts.apache.org/dtds/struts-6.0.dtd";>
 <struts>
-    <constant name="struts.excludedClasses" value="java.math.RoundingMode"/>
+    <constant name="struts.excludedClasses" 
value="java.math.RoundingMode,java.util.HashMap"/>
 </struts>

Reply via email to