commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1470293 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java
Date Sun, 21 Apr 2013 12:32:08 GMT
Author: sebb
Date: Sun Apr 21 12:32:08 2013
New Revision: 1470293

URL: http://svn.apache.org/r1470293
Log:
Looks like COMPOUND_TEXT_Encoder may be buggy?

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java?rev=1470293&r1=1470292&r2=1470293&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java
(original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java
Sun Apr 21 12:32:08 2013
@@ -81,6 +81,13 @@ public class CharSequenceInputStreamTest
         }
     }
 
+    @Ignore //    Unfortunately checking canEncode does not seem to work for all charsets:
+//    testBufferedRead_AvailableCharset(org.apache.commons.io.input.CharSequenceInputStreamTest)
 Time elapsed: 0.682 sec  <<< ERROR!
+//    java.lang.UnsupportedOperationException: null
+//        at java.nio.CharBuffer.array(CharBuffer.java:940)
+//        at sun.nio.cs.ext.COMPOUND_TEXT_Encoder.encodeLoop(COMPOUND_TEXT_Encoder.java:75)
+//        at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544)
+//        at org.apache.commons.io.input.CharSequenceInputStream.fillBuffer(CharSequenceInputStream.java:111)
     @Test
     public void testBufferedRead_AvailableCharset() throws IOException {
         for (final String csName : Charset.availableCharsets().keySet()) {



Mime
View raw message