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.

Cheers
Niclas
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to