2006/8/2, Andrew Zhang <[EMAIL PROTECTED]>:
Does following exception check code work?
if (index < 0 || index >= limit || limit < 0 || limit > seq.length)
{
throw new IndexOutOfBoundsException();
}
The above code also throws NullPointerException if seq is null, and the
order of exception seems the same as the patch.
Does it make sense? Please correct me if I miss something. :)
Yep, it's absolutely correct and looks better =)
Nathan as far as I understand you mean Harmony exception behavior is
more logically than RI. Should we continue discussion or you will
approve Alex's implementation?
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]