Closed Bug 20681 Opened 25 years ago Closed 25 years ago

Mark isn't supported and reset result isn't specified

Categories

(Core Graveyard :: Java-Implemented Plugins, defect, P3)

x86
Windows NT
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: lvv, Assigned: blackconnect)

Details

From java2 documentation about reset method of the InputStream: If the method markSupported returns false, then: 1.The call to reset may throw an IOException. 2.If an IOException is not thrown, then the stream is reset to a fixed state that depends on the particular type of the input stream and how it was created. The bytes that will be supplied to subsequent callers of the read method depend on the particular type of the input stream. Currently the markSupported returns false and reset doesn't throw IOException. So the "fixed state" of the stream should be specified and implemented (something like "to begin of the stream") or reset should throw IOException.
Assignee: akhil.arora → idk
All above was said about implementation of the 2nd parameter (InputStream) of the onDataAvailable method of the PlugletStreamListener interface.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
There is no "fixed state" for PlugletInputStream. I added IOException throwning to PlugletInputStream.reset method I am closing this bug as fixed
Verified with mozilla branch NETSCAPE_6_2_RELEASE and blackwood branch from trunk. IOException is really throwned. Changed QA Contact and added myself to CC list.
Status: RESOLVED → VERIFIED
QA Contact: leila.garin → avm
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.