How strictly do we want to match Sun on StringBuffer?  In the 1.4
Javadoc, many of the methods specify only @throws
IndexOutOfBoundsException, which can be done as a side-effect of array
operations.  Yet the JDK implementation seems to throw
StringIndexOutOfBoundsException (a subclass), which requires explicit
bounds checking.  The current Classpath implementation is a mix of both
approaches, depending on which method you look at.  It would be nice if
it were consistent.

Should we let the VM generate the more general exception implicitly,
skipping explicit checks where possible; or should I make sure that
Classpath throws the more specific StringIndexOutOfBoundsException any
time Sun does?

-- 
This signature intentionally left boring.

Eric Blake             [EMAIL PROTECTED]
  BYU student, free software programmer

_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to