JDK-4164649 : java.io.CharArrayReader(array[], off, len) no exception if off+len is outofbound
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 1.1.5,1.2.0,5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1998-08-07
  • Updated: 2017-05-16
  • Resolved: 2004-10-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b32Fixed
Related Reports
Relates :  
Relates :  
Description
If I construct a CharArrayReader(chararray, 5, 5) where the chararray is  7-characters,  no exception is thrown.  I would expect a IndexOutOfBoundsException.  

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-beta FIXED IN: tiger-beta INTEGRATED IN: tiger-b32 tiger-beta VERIFIED IN: 1.5.0_01
02-10-2004

EVALUATION Oops. -- mr@eng 1998/11/24 --- The fix is OK. It would be good to close a tag <tt> in the javadoc description for public CharArrayReader(char[] buf, int offset, int length) constructor: <tt>buf.length-offset<tt> --> <tt>buf.length-offset</tt> ^^^^ ###@###.### 2004-09-15
15-09-2004