You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Kevin Zhou (JIRA)" <ji...@apache.org> on 2009/03/27 03:54:50 UTC
[jira] Created: (HARMONY-6133) [classlib][luni]
java.io.BufferedInputStream.skip(0) shouldn't throw IOException
[classlib][luni] java.io.BufferedInputStream.skip(0) shouldn't throw IOException
--------------------------------------------------------------------------------
Key: HARMONY-6133
URL: https://issues.apache.org/jira/browse/HARMONY-6133
Project: Harmony
Issue Type: Bug
Components: Classlib
Affects Versions: 5.0M8
Reporter: Kevin Zhou
Fix For: 5.0M9
Given a test case [1], HY throws a java.lang.IOException [2], while RI passes this test.
Create a BufferedInputStream object using a null InputStream, java.io.BufferedInputStream.skip(0) should not throw IOException.
While at this case, java.io.BufferedInputStream.skip(Value > 0) should throw IOException.
[1] Test Case :
public void test_skip_scenario1() throws IOException {
BufferedInputStream buf = new BufferedInputStream(null, 5);
assertEquals(0, buf.skip(0));
}
public void test_skip_scenario2() throws IOException {
BufferedInputStream buf = new BufferedInputStream(null, 5);
try {
buf.skip(1);
fail("should throw IOException");
} catch (IOException e) {
// Expected
}
}
[2] Stack Trace:
java.io.IOException: Stream is closed
at java.io.BufferedInputStream.skip(BufferedInputStream.java:346)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6133) [classlib][luni]
java.io.BufferedInputStream.skip(0) shouldn't throw IOException
Posted by "Kevin Zhou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689792#action_12689792 ]
Kevin Zhou commented on HARMONY-6133:
-------------------------------------
Would you please help to try it?
> [classlib][luni] java.io.BufferedInputStream.skip(0) shouldn't throw IOException
> --------------------------------------------------------------------------------
>
> Key: HARMONY-6133
> URL: https://issues.apache.org/jira/browse/HARMONY-6133
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M8
> Reporter: Kevin Zhou
> Fix For: 5.0M9
>
> Attachments: HARMONY-6133.diff
>
>
> Given a test case [1], HY throws a java.lang.IOException [2], while RI passes this test.
> Create a BufferedInputStream object using a null InputStream, java.io.BufferedInputStream.skip(0) should not throw IOException.
> While at this case, java.io.BufferedInputStream.skip(Value > 0) should throw IOException.
> [1] Test Case :
> public void test_skip_scenario1() throws IOException {
> BufferedInputStream buf = new BufferedInputStream(null, 5);
> assertEquals(0, buf.skip(0));
> }
> public void test_skip_scenario2() throws IOException {
> BufferedInputStream buf = new BufferedInputStream(null, 5);
> try {
> buf.skip(1);
> fail("should throw IOException");
> } catch (IOException e) {
> // Expected
> }
> }
> [2] Stack Trace:
> java.io.IOException: Stream is closed
> at java.io.BufferedInputStream.skip(BufferedInputStream.java:346)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-6133) [classlib][luni]
java.io.BufferedInputStream.skip(0) shouldn't throw IOException
Posted by "Kevin Zhou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Zhou updated HARMONY-6133:
--------------------------------
Attachment: HARMONY-6133.diff
> [classlib][luni] java.io.BufferedInputStream.skip(0) shouldn't throw IOException
> --------------------------------------------------------------------------------
>
> Key: HARMONY-6133
> URL: https://issues.apache.org/jira/browse/HARMONY-6133
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M8
> Reporter: Kevin Zhou
> Fix For: 5.0M9
>
> Attachments: HARMONY-6133.diff
>
>
> Given a test case [1], HY throws a java.lang.IOException [2], while RI passes this test.
> Create a BufferedInputStream object using a null InputStream, java.io.BufferedInputStream.skip(0) should not throw IOException.
> While at this case, java.io.BufferedInputStream.skip(Value > 0) should throw IOException.
> [1] Test Case :
> public void test_skip_scenario1() throws IOException {
> BufferedInputStream buf = new BufferedInputStream(null, 5);
> assertEquals(0, buf.skip(0));
> }
> public void test_skip_scenario2() throws IOException {
> BufferedInputStream buf = new BufferedInputStream(null, 5);
> try {
> buf.skip(1);
> fail("should throw IOException");
> } catch (IOException e) {
> // Expected
> }
> }
> [2] Stack Trace:
> java.io.IOException: Stream is closed
> at java.io.BufferedInputStream.skip(BufferedInputStream.java:346)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-6133) [classlib][luni]
java.io.BufferedInputStream.skip(0) shouldn't throw IOException
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison resolved HARMONY-6133.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: 5.0M9)
5.0M10
Thanks Kevin.
Patch applied to LUNI module at repo revision r772188.
Please verify.
> [classlib][luni] java.io.BufferedInputStream.skip(0) shouldn't throw IOException
> --------------------------------------------------------------------------------
>
> Key: HARMONY-6133
> URL: https://issues.apache.org/jira/browse/HARMONY-6133
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M8
> Reporter: Kevin Zhou
> Assignee: Tim Ellison
> Fix For: 5.0M10
>
> Attachments: HARMONY-6133.diff
>
>
> Given a test case [1], HY throws a java.lang.IOException [2], while RI passes this test.
> Create a BufferedInputStream object using a null InputStream, java.io.BufferedInputStream.skip(0) should not throw IOException.
> While at this case, java.io.BufferedInputStream.skip(Value > 0) should throw IOException.
> [1] Test Case :
> public void test_skip_scenario1() throws IOException {
> BufferedInputStream buf = new BufferedInputStream(null, 5);
> assertEquals(0, buf.skip(0));
> }
> public void test_skip_scenario2() throws IOException {
> BufferedInputStream buf = new BufferedInputStream(null, 5);
> try {
> buf.skip(1);
> fail("should throw IOException");
> } catch (IOException e) {
> // Expected
> }
> }
> [2] Stack Trace:
> java.io.IOException: Stream is closed
> at java.io.BufferedInputStream.skip(BufferedInputStream.java:346)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-6133) [classlib][luni]
java.io.BufferedInputStream.skip(0) shouldn't throw IOException
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison reassigned HARMONY-6133:
------------------------------------
Assignee: Tim Ellison
> [classlib][luni] java.io.BufferedInputStream.skip(0) shouldn't throw IOException
> --------------------------------------------------------------------------------
>
> Key: HARMONY-6133
> URL: https://issues.apache.org/jira/browse/HARMONY-6133
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M8
> Reporter: Kevin Zhou
> Assignee: Tim Ellison
> Fix For: 5.0M9
>
> Attachments: HARMONY-6133.diff
>
>
> Given a test case [1], HY throws a java.lang.IOException [2], while RI passes this test.
> Create a BufferedInputStream object using a null InputStream, java.io.BufferedInputStream.skip(0) should not throw IOException.
> While at this case, java.io.BufferedInputStream.skip(Value > 0) should throw IOException.
> [1] Test Case :
> public void test_skip_scenario1() throws IOException {
> BufferedInputStream buf = new BufferedInputStream(null, 5);
> assertEquals(0, buf.skip(0));
> }
> public void test_skip_scenario2() throws IOException {
> BufferedInputStream buf = new BufferedInputStream(null, 5);
> try {
> buf.skip(1);
> fail("should throw IOException");
> } catch (IOException e) {
> // Expected
> }
> }
> [2] Stack Trace:
> java.io.IOException: Stream is closed
> at java.io.BufferedInputStream.skip(BufferedInputStream.java:346)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-6133) [classlib][luni]
java.io.BufferedInputStream.skip(0) shouldn't throw IOException
Posted by "Kevin Zhou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Zhou closed HARMONY-6133.
-------------------------------
Thanks, Tim.
> [classlib][luni] java.io.BufferedInputStream.skip(0) shouldn't throw IOException
> --------------------------------------------------------------------------------
>
> Key: HARMONY-6133
> URL: https://issues.apache.org/jira/browse/HARMONY-6133
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M8
> Reporter: Kevin Zhou
> Assignee: Tim Ellison
> Fix For: 5.0M10
>
> Attachments: HARMONY-6133.diff
>
>
> Given a test case [1], HY throws a java.lang.IOException [2], while RI passes this test.
> Create a BufferedInputStream object using a null InputStream, java.io.BufferedInputStream.skip(0) should not throw IOException.
> While at this case, java.io.BufferedInputStream.skip(Value > 0) should throw IOException.
> [1] Test Case :
> public void test_skip_scenario1() throws IOException {
> BufferedInputStream buf = new BufferedInputStream(null, 5);
> assertEquals(0, buf.skip(0));
> }
> public void test_skip_scenario2() throws IOException {
> BufferedInputStream buf = new BufferedInputStream(null, 5);
> try {
> buf.skip(1);
> fail("should throw IOException");
> } catch (IOException e) {
> // Expected
> }
> }
> [2] Stack Trace:
> java.io.IOException: Stream is closed
> at java.io.BufferedInputStream.skip(BufferedInputStream.java:346)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.