You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by ss...@apache.org on 2025/09/25 11:46:12 UTC
(xmlgraphics-batik) branch main updated: Add Java 25 support
This is an automated email from the ASF dual-hosted git repository.
ssteiner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/xmlgraphics-batik.git
The following commit(s) were added to refs/heads/main by this push:
new 022c808d6 Add Java 25 support
022c808d6 is described below
commit 022c808d6f628ccd5393cecb7fa0636075736dcb
Author: Simon Steiner <ss...@apache.org>
AuthorDate: Thu Sep 25 12:45:45 2025 +0100
Add Java 25 support
---
.github/workflows/maven.yml | 2 +-
.../test/java/org/apache/batik/svg/ValidateDTDTestCase.java | 1 +
.../org/apache/batik/util/ApplicationSecurityEnforcerTest.java | 10 ++++++++--
.../java/org/apache/batik/test/PerformanceTestValidator.java | 2 +-
4 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 4c818c4c7..117c8223d 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- jdk: ['8', '11', '17', '21']
+ jdk: ['8', '11', '17', '21', '25']
os: [ubuntu-latest, windows-latest]
steps:
diff --git a/batik-test-old/src/test/java/org/apache/batik/svg/ValidateDTDTestCase.java b/batik-test-old/src/test/java/org/apache/batik/svg/ValidateDTDTestCase.java
index 6caabbaed..68d168427 100644
--- a/batik-test-old/src/test/java/org/apache/batik/svg/ValidateDTDTestCase.java
+++ b/batik-test-old/src/test/java/org/apache/batik/svg/ValidateDTDTestCase.java
@@ -30,6 +30,7 @@ import org.junit.Test;
public class ValidateDTDTestCase {
@Test
public void testValidateDTD() throws Exception {
+ System.setProperty("jdk.xml.maxParameterEntitySizeLimit", "100000");
String svgContent = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n" +
"<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n" +
"<svg width=\"100\" height=\"100\" xmlns=\"http://www.w3.org/2000/svg\">\n" +
diff --git a/batik-test-old/src/test/java/org/apache/batik/util/ApplicationSecurityEnforcerTest.java b/batik-test-old/src/test/java/org/apache/batik/util/ApplicationSecurityEnforcerTest.java
index a701158fa..404c31b5f 100644
--- a/batik-test-old/src/test/java/org/apache/batik/util/ApplicationSecurityEnforcerTest.java
+++ b/batik-test-old/src/test/java/org/apache/batik/util/ApplicationSecurityEnforcerTest.java
@@ -94,7 +94,10 @@ public class ApplicationSecurityEnforcerTest extends DefaultTestSuite {
} catch (UnsupportedOperationException e) {
return true;
} finally {
- System.setSecurityManager(null);
+ try {
+ System.setSecurityManager(null);
+ } catch (UnsupportedOperationException e) {
+ }
}
return false;
@@ -117,7 +120,10 @@ public class ApplicationSecurityEnforcerTest extends DefaultTestSuite {
return true;
}
} finally {
- System.setSecurityManager(null);
+ try {
+ System.setSecurityManager(null);
+ } catch (UnsupportedOperationException e) {
+ }
}
return false;
diff --git a/batik-test/src/main/java/org/apache/batik/test/PerformanceTestValidator.java b/batik-test/src/main/java/org/apache/batik/test/PerformanceTestValidator.java
index 2b58e6eea..5cbd62ec1 100644
--- a/batik-test/src/main/java/org/apache/batik/test/PerformanceTestValidator.java
+++ b/batik-test/src/main/java/org/apache/batik/test/PerformanceTestValidator.java
@@ -72,7 +72,7 @@ public class PerformanceTestValidator extends AbstractTest {
return result;
}
- p.setReferenceScore(score*4);
+ p.setReferenceScore(score*5);
r = p.run();
assertTrue(!r.hasPassed());
if (!r.getErrorCode().equals("unexpected.performance.improvement")) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org