On Fri, 2004-07-02 at 11:31, Roman Kennke wrote:
> > Caused by: java.lang.NullPointerException
> >    at org.eclipse.osgi.framework.adaptor.core.BundleResourceHandler.openConnection 
> > (BundleResourceHandler.java:138)
> >    at java.net.URL.openConnection (URL.java:658)
> >    at java.net.URL.openStream (URL.java:671)
> >    at 
> > org.eclipse.osgi.framework.internal.core.ManifestLocalization.getResourceBundle 
> > (ManifestLocalization.java:114)
> > [...]
> > 
> > This indicates that it is a general bug in our GNU Classpath core
> > libraries. I have been unable to pinpoint it however.
> 
> just an observation: NullPointerExceptions are often thrown, because in
> GNU Classpath are lots of method skeletons, which are not yet
> implemented and only return null. Maybe (hopefully) this is such a
> case.? Didn't look at it though.
> 
> Maybe we should go and throw out (or even better: implement) any such
> methods. Then we would see such problems earlier -- during compiling.
> Although, this would very likely break alot of things.
> 
> just my 2c
>       
> /Roman
> 
> 
> ______________________________________________________________________
> _______________________________________________
> Classpath mailing list
> [EMAIL PROTECTED]
> http://lists.gnu.org/mailman/listinfo/classpath
Yes, I have to concur here -- I don't think we should have
implementations that need completing but are hidden by returning null,
even if it means some things break.  Throwing an Error would be much
clearer, and make it obvious where holes in the implementation exist. 
Things like this make it appear that we have support that we don't -- I
think a lot of the newer APIs are hidden in this way.
-- 
Andrew :-)
 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
 
Value your freedom, or you will lose it, teaches history.
`Don't bother us with politics' respond those who don't want to learn.
 

Attachment: signature.asc
Description: This is a digitally signed message part

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

Reply via email to