United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4695200 : ByteArrayInputStream doesn't specify behavior when mark(readlimit) is used

Details
Type:
Bug
Submit Date:
2002-05-31
Status:
Closed
Updated Date:
2004-09-13
Project Name:
JDK
Resolved Date:
2003-11-11
Component:
docs
OS:
solaris_2.6,generic
Sub-Component:
guides
CPU:
sparc,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0,5.0
Fixed Versions:
5.0 (b28)

Related Reports

Sub Tasks

Description
Name: asR10047			Date: 05/31/2002


ByteArrayInputStream extended from InputStream overrides mark(int readLimit)
method but does not comment how it's behaviour changes depending on
readLimit value.

There is only one sentence that states "readAheadLimit - the maximum limit of
bytes that can be read before the mark position becomes invalid." but all
other comments and actual behaviour don't support it.

I regard it as the specification bug. Specification should clarify how
readAheadLimit influences on reset() and mark() or should states readAheadLimit
is not used by ByteArrayInputStream.

Please note, current implementation does not take into account readAheadLimit
value at all.

======================================================================

                                    

Comments
EVALUATION

Will add the following note to the comment in question:

     * <p> The <code>readAheadLimit</code> for class
     * <code>ByteArrayInputStream</code> has no meaning.

###@###.### 2003-09-17
                                     
2003-09-17
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
generic
tiger-beta

FIXED IN:
tiger
tiger-beta

INTEGRATED IN:
tiger-b28
tiger-beta

VERIFIED IN:
1.5


                                     
2004-09-14



Hardware and Software, Engineered to Work Together