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

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 57b71765ab6aa62a418a1f0765bd728949c913db
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Nov 3 19:10:41 2026 +0000

    Fix back-port
---
 .../util/modeler/modules/TestMbeansDescriptorsDigesterSource.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/test/org/apache/tomcat/util/modeler/modules/TestMbeansDescriptorsDigesterSource.java
 
b/test/org/apache/tomcat/util/modeler/modules/TestMbeansDescriptorsDigesterSource.java
index f230da83c2..efcffc9351 100644
--- 
a/test/org/apache/tomcat/util/modeler/modules/TestMbeansDescriptorsDigesterSource.java
+++ 
b/test/org/apache/tomcat/util/modeler/modules/TestMbeansDescriptorsDigesterSource.java
@@ -135,7 +135,7 @@ public class TestMbeansDescriptorsDigesterSource {
     public void testLoadClosesStreamOpenedForFile() throws Exception {
         File file = File.createTempFile("tomcat-test-", ".xml");
         try {
-            Files.writeString(file.toPath(), XML);
+            Files.write(file.toPath(), XML.getBytes(StandardCharsets.UTF_8));
             Registry registry = Registry.getRegistry(null);
 
             registry.load(null, file, null);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to