Note that this is not only "beautiful" but also performance oriented way ->
do not create extra rethrows if it's possible

On 5/12/06, Semukhina, Elena V <[EMAIL PROTECTED]> wrote:

To have a "beautiful" fix, why don't you just write



System.arraycopy(data, start, value, 0, count);



without trying to catch any exception and rethrow another one?
ArrayIndexOutOfBoundsException, if happened, would be thrown by
System.arraycopy().






--
Mikhail Fursov

Reply via email to