DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25045>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25045

UT8Reader is throwing a ArrayOutOfBounds Exception

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX



------- Additional Comments From [EMAIL PROTECTED]  2003-11-27 15:28 -------
As you stated, the problem you're experiencing is because your InputStream does 
not honour the API's [1] description, which states that up to the number bytes 
specified in the 'len' parameter will be read. I don't believe we should be 
accommodating broken implementations with bounds checking (and other tests) 
which are otherwise extraneous if the implementation actually complies with its 
interface. It just hurts performance.

[1] http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[],%
20int,%20int)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to