You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2010/08/17 01:12:17 UTC
[jira] Commented: (HARMONY-6611)
ImageOutputStreamImplTest.testWriteUTF() unit test fails with
ByteOrder.LITTLE_ENDIAN
[ https://issues.apache.org/jira/browse/HARMONY-6611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899174#action_12899174 ]
Hudson commented on HARMONY-6611:
---------------------------------
Integrated in Harmony-1.5-head-linux-x86_64 #934 (See [https://hudson.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/934/])
Applying patch from "[#HARMONY-6611]
ImageOutputStreamImplTest.testWriteUTF() unit test fails with
ByteOrder.LITTLE_ENDIAN".
> 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
> Assignee: Mark Hindess
> Attachments: HARMONY-6611.diff
>
>
> 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.