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/05 03:41:59 UTC
[jira] Created: (HARMONY-6111) [classlib] [luni]
java.io.BufferedInputStream.reset() throws IOException after skipping the
marked position
[classlib] [luni] java.io.BufferedInputStream.reset() throws IOException after skipping the marked position
-----------------------------------------------------------------------------------------------------------
Key: HARMONY-6111
URL: https://issues.apache.org/jira/browse/HARMONY-6111
Project: Harmony
Issue Type: Bug
Components: Classlib
Affects Versions: 5.0M8
Reporter: Kevin Zhou
Fix For: 5.0M9
Given a test case [1].
If SKIP_VALUE<=5, all of HDK and HY6VM25+ and RI pass the test;
else both HDK and HY6VM25+ throw IOException [2] but RI also passes this.
[1] Test Case:
public void test_skipJ() throws IOException { byte[] input = "12345678900".getBytes(); BufferedInputStream buffis = new BufferedInputStream( new ByteArrayInputStream(input)); buffis.mark(5); buffis.skip(SKIP_VALUE); buffis.reset(); }
[2] java.io.IOException: Mark has been invalidated.
at java.io.BufferedInputStream.reset(BufferedInputStream.java:324)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.