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 22ea2ce77733b4714ef53813875060beb86a2ae8 Author: Mark Thomas <[email protected]> AuthorDate: Fri Nov 6 17:27:52 2026 +0000 Fix backport --- test/org/apache/naming/factory/TestLookupFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/org/apache/naming/factory/TestLookupFactory.java b/test/org/apache/naming/factory/TestLookupFactory.java index a1d542f32f..15165f6d76 100644 --- a/test/org/apache/naming/factory/TestLookupFactory.java +++ b/test/org/apache/naming/factory/TestLookupFactory.java @@ -246,10 +246,10 @@ public class TestLookupFactory extends TomcatBaseTest { Files.createDirectories(classes); Path source = new File(docBase, "tester/Marker.java").toPath(); Files.createDirectories(source.getParent()); - Files.writeString(source, "package tester;\npublic class Marker implements MarkerHome {\n}\n", - StandardCharsets.UTF_8); + Files.write(source, "package tester;\npublic class Marker implements MarkerHome {\n}\n".getBytes( + StandardCharsets.UTF_8)); Path homeSource = source.resolveSibling("MarkerHome.java"); - Files.writeString(homeSource, "package tester;\npublic interface MarkerHome {\n}\n", StandardCharsets.UTF_8); + Files.write(homeSource, "package tester;\npublic interface MarkerHome {\n}\n".getBytes(StandardCharsets.UTF_8)); ByteArrayOutputStream compilerOutput = new ByteArrayOutputStream(); @SuppressWarnings("null") int result = compiler.run(null, compilerOutput, compilerOutput, "-d", classes.toString(), --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
