dacapo xalan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "David" == David Daney <ddaney@xxxxxxxxxx> writes:

David> Well maybe some of those, but why not just catch those documented in
David> Class.newInstance() and Class.forName()?  Namely add LinkageError and
David> ExceptionInInitializerError.  Or maybe Exceptions in general but no
David> Errors others than those explicitly documented.

The problem is that Class.forName() doesn't wrap exceptions in
ExceptionInInitializerError, it just propagates whatever the underlying
constructor throws.  This is a bug in the spec (or the original
implementation) but we're stuck with it.

Tom


[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux