RE: [jira] Commented: (HARMONY-1033) [classlib][lang]compatibility: expected IndexOutOfBoundsException for Character.codePointAt

2006-08-02 Thread Nathan Beyer
ust 02, 2006 3:31 AM > To: harmony-dev@incubator.apache.org > Subject: Re: [jira] Commented: (HARMONY-1033) > [classlib][lang]compatibility: expected IndexOutOfBoundsException for > Character.codePointAt > > 2006/8/2, Andrew Zhang <[EMAIL PROTECTED]>: > &

Re: [jira] Commented: (HARMONY-1033) [classlib][lang]compatibility: expected IndexOutOfBoundsException for Character.codePointAt

2006-08-02 Thread Denis Kishenko
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 o

Re: [jira] Commented: (HARMONY-1033) [classlib][lang]compatibility: expected IndexOutOfBoundsException for Character.codePointAt

2006-08-02 Thread Andrew Zhang
Hi, 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

Re: [jira] Commented: (HARMONY-1033) [classlib][lang]compatibility: expected IndexOutOfBoundsException for Character.codePointAt

2006-08-02 Thread Denis Kishenko
Hi all We have strange exceptions behavior of RI implementation of Character.codePointAt.method. Spec 1.5 says public static int codePointAt(char[] a, int index, int limit) Throws: NullPointerException - if a is null. IndexOutOfBoundsException - if the index argument is negative or not less