On 10/08/06, Jimmy, Jing Lv <[EMAIL PROTECTED]> wrote:
I've looked into this, I feel puzzled, the stack trace shows that: org.apache.harmony.luni.net.SocketOutputStream.write(SocketOutputStream.java:89) but there are checks for overflow: if (0 <= offset && offset <= buffer.length && 0 <= count && count <= buffer.length - offset){ ... }
What would happen if you were writing out "" and the buffer was zero-sized? Should it be offset < buffer.length instead of offset <= buffer.length? Not knowing where the code is, this is just a guess, but if buffer.length is the size, then the range would be [0,buffer.length-1] which suggests a less-than would fix that type of issue ... (Of course, I could be completely wrong :-) Alex. --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]