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

garydgregory pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/commons-secure-xml.git


The following commit(s) were added to refs/heads/main by this push:
     new 9d251f7  SchemaContentModelLimitTest.MAX_OCCURS only needs to be just 
over 5,000.
9d251f7 is described below

commit 9d251f7641cc5049d59ef7c86aa7680d88a181d8
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Sep 1 12:50:35 2026 -0400

    SchemaContentModelLimitTest.MAX_OCCURS only needs to be just over 5,000.
---
 .../java/org/apache/commons/xml/secure/SchemaContentModelLimitTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/commons/xml/secure/SchemaContentModelLimitTest.java 
b/src/test/java/org/apache/commons/xml/secure/SchemaContentModelLimitTest.java
index 0b4946f..06de2fe 100644
--- 
a/src/test/java/org/apache/commons/xml/secure/SchemaContentModelLimitTest.java
+++ 
b/src/test/java/org/apache/commons/xml/secure/SchemaContentModelLimitTest.java
@@ -42,7 +42,7 @@
 class SchemaContentModelLimitTest {
 
     /** Above both recognized implementations' limits (3,000 nodes on Xerces, 
5,000 on the stock JDK); an unbounded run still finishes in seconds. */
-    private static final int MAX_OCCURS = 10_000;
+    private static final int MAX_OCCURS = 5_001;
 
     /** Compiles the payload through {@code factory} and validates a matching 
instance, the step that forces the expansion. */
     private static void compileAndValidate(final SchemaFactory factory) throws 
Exception {

Reply via email to