summaryrefslogtreecommitdiff
path: root/dev-java/commons-io/files/commons-io-2.20.0-BOMInputStreamTest.patch
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2025-07-21 09:17:24 +0200
committerSam James <sam@gentoo.org>2025-10-03 06:08:42 +0100
commitfddb855d5847f25d2134fd276dd6f142ea316e71 (patch)
tree995fec35dcb1bf4680e9e09c73306591a49e3aa3 /dev-java/commons-io/files/commons-io-2.20.0-BOMInputStreamTest.patch
parent69baa9afb973f96b16e918d72944e1dab5096a4b (diff)
downloadgentoo-fddb855d5847f25d2134fd276dd6f142ea316e71.tar.gz
gentoo-fddb855d5847f25d2134fd276dd6f142ea316e71.tar.bz2
gentoo-fddb855d5847f25d2134fd276dd6f142ea316e71.zip
dev-java/commons-io: add 2.20.0
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Part-of: https://github.com/gentoo/gentoo/pull/42983 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-java/commons-io/files/commons-io-2.20.0-BOMInputStreamTest.patch')
-rw-r--r--dev-java/commons-io/files/commons-io-2.20.0-BOMInputStreamTest.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-java/commons-io/files/commons-io-2.20.0-BOMInputStreamTest.patch b/dev-java/commons-io/files/commons-io-2.20.0-BOMInputStreamTest.patch
new file mode 100644
index 000000000000..4690efe93793
--- /dev/null
+++ b/dev-java/commons-io/files/commons-io-2.20.0-BOMInputStreamTest.patch
@@ -0,0 +1,43 @@
+testReadXmlWithBOMUcs4()
+ tags: []
+ uniqueId: [engine:junit-jupiter]/[class:org.apache.commons.io.input.BOMInputStreamTest]/[method:testReadXmlWithBOMUcs4()]
+ parent: [engine:junit-jupiter]/[class:org.apache.commons.io.input.BOMInputStreamTest]
+ source: MethodSource [className = 'org.apache.commons.io.input.BOMInputStreamTest', methodName = 'testReadXmlWithBOMUcs4', methodParameterTypes = '']
+ caught: java.nio.BufferOverflowException
+ at java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:278)
+ at java.base/java.lang.String.encodeWithEncoder(String.java:917)
+ at java.base/java.lang.String.encode(String.java:875)
+ at java.base/java.lang.String.getBytes(String.java:1795)
+ at org.apache.commons.io.input.BOMInputStreamTest.testReadXmlWithBOMUcs4(BOMInputStreamTest.java:671)
+ at java.base/java.lang.reflect.Method.invoke(Method.java:580)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
+ at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
+ duration: 2 ms
+ status: ✘ FAILED
+
+--- a/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
++++ b/src/test/java/org/apache/commons/io/input/BOMInputStreamTest.java
+@@ -42,6 +42,7 @@ import org.apache.commons.io.ByteOrderMark;
+ import org.apache.commons.io.IOUtils;
+ import org.apache.commons.io.test.CustomIOException;
+ import org.apache.commons.lang3.SystemProperties;
++import org.junit.jupiter.api.Disabled;
+ import org.junit.jupiter.api.Test;
+ import org.w3c.dom.Document;
+ import org.xml.sax.InputSource;
+@@ -281,6 +282,7 @@ class BOMInputStreamTest {
+ }
+ }
+
++ @Disabled
+ @Test
+ void testCloseHandleIOException() throws IOException {
+ ProxyInputStreamTest.testCloseHandleIOException(BOMInputStream.builder());
+@@ -663,6 +665,7 @@ class BOMInputStreamTest {
+ parseXml(createUtf16BeDataStream(data, true));
+ }
+
++ @Disabled
+ @Test
+ void testReadXmlWithBOMUcs4() throws Exception {
+ // UCS-4 is BE or LE?