Niclas Hedhman wrote:
On Tue, Aug 12, 2008 at 1:03 PM, Richard S. Hall <[EMAIL PROTECTED]> wrote:
BJ Hargrave wrote:
NoClassDefFoundError is an Error which is unchecked and can be thrown
anywhere. Given that Bundle.loadClass is patterned after
ClassLoader.loadClass, one should expect similar results.
I agree that it should be possible to throw it from Bundle.loadClass(), but
the fact that it is unchecked is not necessarily a reason for not listing
it. We list IllegalStateException on that method and this is unchecked too.
Don't forget to list OutOfMemoryError where ever that can happen ;o)
How about cool ones like VerifyError and VirtualMachineError....
I mean there is a reason why some Errors exist as both Errors and Exceptions;
the above, NoSuchMethod, NoSuchField, IllegalAccess...
So, list RuntimeException == Nice.
List Errors == Not feasible.
Well, we are talking about ones you should expect to see...NCDFE are
reasonably common when loading classes, especially for beginners in the
OSGi environment. So, assuming that there is no value in trying to
report such errors in a standard way, I can accept that it may not be
convenient to list them and it is fair to simply say that this behaves
like ClassLoader.loadClass().
-> richard
Cheers
Niclas
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev