You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vladimir Strigun (JIRA)" <ji...@apache.org> on 2006/04/25 17:24:06 UTC
[jira] Created: (HARMONY-411) InputStreamReader should not thrown
exception if bytes sequence is incomplete
InputStreamReader should not thrown exception if bytes sequence is incomplete
-----------------------------------------------------------------------------
Key: HARMONY-411
URL: http://issues.apache.org/jira/browse/HARMONY-411
Project: Harmony
Type: Bug
Components: Classlib
Reporter: Vladimir Strigun
Priority: Minor
Harmony implementation of method read() throws IOException if bytes sequence is incomplete in current charset. RI implementation replace malfromed input with default replacement.
The following test failed on Harmony classlib (java.io.IOException: CoderResult[Malformed-input error with erroneous input length 2]):
public void testRead() throws Exception {
InputStreamReader isr = new InputStreamReader(new ByteArrayInputStream(new byte[] {-32, -96}), "UTF-8");
assertTrue("read() return incorrect value", isr.read()==65533);
}
I will attach testcase and patch soon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-411) InputStreamReader should not thrown
exception if bytes sequence is incomplete
Posted by "Vladimir Strigun (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-411?page=all ]
Vladimir Strigun updated HARMONY-411:
-------------------------------------
Attachment: Harmony-411_test.txt
regression test for the issue.
> InputStreamReader should not thrown exception if bytes sequence is incomplete
> -----------------------------------------------------------------------------
>
> Key: HARMONY-411
> URL: http://issues.apache.org/jira/browse/HARMONY-411
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Vladimir Strigun
> Priority: Minor
> Attachments: Harmony-411_test.txt
>
> Harmony implementation of method read() throws IOException if bytes sequence is incomplete in current charset. RI implementation replace malfromed input with default replacement.
> The following test failed on Harmony classlib (java.io.IOException: CoderResult[Malformed-input error with erroneous input length 2]):
> public void testRead() throws Exception {
> InputStreamReader isr = new InputStreamReader(new ByteArrayInputStream(new byte[] {-32, -96}), "UTF-8");
> assertTrue("read() return incorrect value", isr.read()==65533);
> }
> I will attach testcase and patch soon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (HARMONY-411) InputStreamReader should not thrown
exception if bytes sequence is incomplete
Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-411?page=all ]
Mikhail Loenko reassigned HARMONY-411:
--------------------------------------
Assign To: Mikhail Loenko
> InputStreamReader should not thrown exception if bytes sequence is incomplete
> -----------------------------------------------------------------------------
>
> Key: HARMONY-411
> URL: http://issues.apache.org/jira/browse/HARMONY-411
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Vladimir Strigun
> Assignee: Mikhail Loenko
> Priority: Minor
> Attachments: Harmony-411_patch.txt, Harmony-411_test.txt
>
> Harmony implementation of method read() throws IOException if bytes sequence is incomplete in current charset. RI implementation replace malfromed input with default replacement.
> The following test failed on Harmony classlib (java.io.IOException: CoderResult[Malformed-input error with erroneous input length 2]):
> public void testRead() throws Exception {
> InputStreamReader isr = new InputStreamReader(new ByteArrayInputStream(new byte[] {-32, -96}), "UTF-8");
> assertTrue("read() return incorrect value", isr.read()==65533);
> }
> I will attach testcase and patch soon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (HARMONY-411) InputStreamReader should not thrown
exception if bytes sequence is incomplete
Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-411?page=all ]
Mikhail Loenko resolved HARMONY-411:
------------------------------------
Resolution: Fixed
Fixed in revision 397106
The test was modified to follow conventions
Vladimir please check if it resolves the problem
> InputStreamReader should not thrown exception if bytes sequence is incomplete
> -----------------------------------------------------------------------------
>
> Key: HARMONY-411
> URL: http://issues.apache.org/jira/browse/HARMONY-411
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Vladimir Strigun
> Assignee: Mikhail Loenko
> Priority: Minor
> Attachments: Harmony-411_patch.txt, Harmony-411_test.txt
>
> Harmony implementation of method read() throws IOException if bytes sequence is incomplete in current charset. RI implementation replace malfromed input with default replacement.
> The following test failed on Harmony classlib (java.io.IOException: CoderResult[Malformed-input error with erroneous input length 2]):
> public void testRead() throws Exception {
> InputStreamReader isr = new InputStreamReader(new ByteArrayInputStream(new byte[] {-32, -96}), "UTF-8");
> assertTrue("read() return incorrect value", isr.read()==65533);
> }
> I will attach testcase and patch soon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (HARMONY-411) InputStreamReader should not thrown
exception if bytes sequence is incomplete
Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-411?page=all ]
Mikhail Loenko closed HARMONY-411:
----------------------------------
verified by Vladimir
> InputStreamReader should not thrown exception if bytes sequence is incomplete
> -----------------------------------------------------------------------------
>
> Key: HARMONY-411
> URL: http://issues.apache.org/jira/browse/HARMONY-411
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Vladimir Strigun
> Assignee: Mikhail Loenko
> Priority: Minor
> Attachments: Harmony-411_patch.txt, Harmony-411_test.txt
>
> Harmony implementation of method read() throws IOException if bytes sequence is incomplete in current charset. RI implementation replace malfromed input with default replacement.
> The following test failed on Harmony classlib (java.io.IOException: CoderResult[Malformed-input error with erroneous input length 2]):
> public void testRead() throws Exception {
> InputStreamReader isr = new InputStreamReader(new ByteArrayInputStream(new byte[] {-32, -96}), "UTF-8");
> assertTrue("read() return incorrect value", isr.read()==65533);
> }
> I will attach testcase and patch soon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-411) InputStreamReader should not thrown
exception if bytes sequence is incomplete
Posted by "Vladimir Strigun (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-411?page=all ]
Vladimir Strigun updated HARMONY-411:
-------------------------------------
Attachment: Harmony-411_patch.txt
Please try my patch.
> InputStreamReader should not thrown exception if bytes sequence is incomplete
> -----------------------------------------------------------------------------
>
> Key: HARMONY-411
> URL: http://issues.apache.org/jira/browse/HARMONY-411
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Vladimir Strigun
> Priority: Minor
> Attachments: Harmony-411_patch.txt, Harmony-411_test.txt
>
> Harmony implementation of method read() throws IOException if bytes sequence is incomplete in current charset. RI implementation replace malfromed input with default replacement.
> The following test failed on Harmony classlib (java.io.IOException: CoderResult[Malformed-input error with erroneous input length 2]):
> public void testRead() throws Exception {
> InputStreamReader isr = new InputStreamReader(new ByteArrayInputStream(new byte[] {-32, -96}), "UTF-8");
> assertTrue("read() return incorrect value", isr.read()==65533);
> }
> I will attach testcase and patch soon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-411) InputStreamReader should not thrown
exception if bytes sequence is incomplete
Posted by "Vladimir Strigun (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-411?page=comments#action_12376410 ]
Vladimir Strigun commented on HARMONY-411:
------------------------------------------
Thanks Mikhail,
fix applied as expected
> InputStreamReader should not thrown exception if bytes sequence is incomplete
> -----------------------------------------------------------------------------
>
> Key: HARMONY-411
> URL: http://issues.apache.org/jira/browse/HARMONY-411
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Vladimir Strigun
> Assignee: Mikhail Loenko
> Priority: Minor
> Attachments: Harmony-411_patch.txt, Harmony-411_test.txt
>
> Harmony implementation of method read() throws IOException if bytes sequence is incomplete in current charset. RI implementation replace malfromed input with default replacement.
> The following test failed on Harmony classlib (java.io.IOException: CoderResult[Malformed-input error with erroneous input length 2]):
> public void testRead() throws Exception {
> InputStreamReader isr = new InputStreamReader(new ByteArrayInputStream(new byte[] {-32, -96}), "UTF-8");
> assertTrue("read() return incorrect value", isr.read()==65533);
> }
> I will attach testcase and patch soon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira