harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-6611) ImageOutputStreamImplTest.testWriteUTF() unit test fails with ByteOrder.LITTLE_ENDIAN
Date Mon, 16 Aug 2010 22:45:18 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6611?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Hindess resolved HARMONY-6611.
-----------------------------------

    Resolution: Fixed

Applied patch in r986150.  Please confirm (by closing this JIRA) that it has been applied
as expected.

> 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.


Mime
View raw message