Look at HARMONY-387.

Example:
1) java.io.ByteArrayOutputStream.write(byte[] b , int off, int len):
Harmony throws ArrayIndexOutOfBoundsException when off<0 or/and len
<0, while RI throws IndexOutOfBoundsException.
Specification mentions neither ArrayIndexOutOfBoundsException nor
IndexOutOfBoundsException.


Actually ArrayIndexOutOfBoundsException is a sub class of
IndexOutOfBoundsException.

So the statement "both Harmony and RI throw IndexOutOfBoundsException" is
true.

But do we have to throw exactly those exceptions that are thrown by RI?


Can we throw
o.a.h.VMRisenNPE that extends NullPointerException?

What if they throw kind of
sun.internal.SunFavoriteSubClassOfNullPointerException ?

Thanks,
Mikhail

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to