harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lang Yang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6611) ImageOutputStreamImplTest.testWriteUTF() unit test fails with ByteOrder.LITTLE_ENDIAN
Date Sun, 08 Aug 2010 19:46:16 GMT
ImageOutputStreamImplTest.testWriteUTF() unit test fails with ByteOrder.LITTLE_ENDIAN
-------------------------------------------------------------------------------------

                 Key: HARMONY-6611
                 URL: https://issues.apache.org/jira/browse/HARMONY-6611
             Project: Harmony
          Issue Type: Sub-task
          Components: Classlib
            Reporter: Lang Yang


When byte order is set to ByteOrder.LITTLE_ENDIAN, writeUTF() and readUTF() fails. 

I found the root cause is that we should ignore the current byte order setting in the writeUTF()
and readUTF() methods, and use network byte order (which is ByteOrder.BIG_ENDIAN)  instead
. 

Please refer to the spec:
1. readUTF() - http://download.oracle.com/javase/1.4.2/docs/api/javax/imageio/stream/ImageInputStreamImpl.html#readUTF()
2. writeUTF() - http://download.oracle.com/javase/1.4.2/docs/api/javax/imageio/stream/ImageOutputStreamImpl.html#writeUTF(java.lang.String)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message