> Kind of ;) I think it's been around since java 1.0, so it
> would predate
> the reflection APIs that ararived with java 1.1, AFAIK. ;)

It does predate the java.lang.reflect API's, but it is still
(structural) reflection.

Anyway it seems the two exception approaches are functionally
equivalent and it's really a matter of style/preference now:

- UnsupportedOperationException

  + semantically close in meaning
  + allows simple use of try/catch in portable programs
  - not uniquely defining ie grepping for it will give false results

- NYIException

  + semantically exact in meaning
  + uniquely defining
  + can be accommodated for by portable programs
  - requires a little more effort in catch blocks to identify

Toss a coin.

Cheers,
David Holmes



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

Reply via email to