harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko" <dkishe...@gmail.com>
Subject Re: [jira] Commented: (HARMONY-1033) [classlib][lang]compatibility: expected IndexOutOfBoundsException for Character.codePointAt
Date Wed, 02 Aug 2006 08:31:14 GMT
2006/8/2, Andrew Zhang <zhanghuangzhu@gmail.com>:
> 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: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message