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=15506>. 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=15506 [PATCH] ArrayIndexOutOfBoundsException in BufferedOutputStream.write() [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME ------- Additional Comments From [EMAIL PROTECTED] 2003-02-25 10:42 ------- Hm... sorry, works for me. See the test. ----------- char[] from = "12testing12".toCharArray(); char[] to = new char[4]; int off = 2; // grab "testing" int len = 7; int count = 2; // [xx..] while(len > to.length - count) { to = new char[to.length+1]; } // xxtesting System.arraycopy(from,off,to,count,len); System.out.println("[" + new String(to) + "]"); -----------