Bug in java.io.ByteArrayInputStream
Posted on 1997-08-12
I am using Sun's JDK 1.1.3. on Win95. I have come across a bug in
java.io.ByteArrayInputStream class. The mark() and reset() methods do
not work correctly. If a mark is set using mark() and then reset()
called, the mark of the ByteArrayInputStream still remains at the
original value. (By default, the mark is set to the first byte., ie.,
mark = 0). For example, if mark(5) is called, followed by reset(), the
mark still remains at 0.
This bug has been implicitly reported as a bug for class
java.io.LineNumberInputStream (Bug ID : 4017159, Synopsis:
java.io.LineNumberInputStream mark/reset methods work wrong. : Submit
Date: Dec 1, 1996). Since, its been 8 months this bug has been
reported, I wonder why Sun's Java team has not fixed this bug. This
bug exists even in JDK 1.1.
Does anybody share any thoughts on this or know what is happening to
this end ?