harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov" <mike.fur...@gmail.com>
Subject Re: [classlib] Exception throwing compatibility
Date Fri, 12 May 2006 07:11:56 GMT
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 <elena.v.semukhina@intel.com> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message