On May 4, 2009, at 1:38 PM, Richard S. Hall wrote:
On 5/4/09 4:26 PM, Alan D. Cabrera wrote:
In the integration tests of a product that tests OSGi containers
there's a test where it does a
systemBundle.getResource("META-INF/")
and the test fails if the system bundle returns null. It's my
understanding that Equinox, Felix, and Knoplerfish seem to return a
URL.
Don't infer that the returned URL means anything. Felix probably
just returns the whatever is returned by the parent class loader.
While I find it odd that the URL being returned from a bundle would
not mean anything in particular, I'm getting the sense that one should
not rely on always getting something back at all. This gives me the
ammo to go back to the product and argue that they should not perform
the test on the system bundle unless the OSGi Alliance wants to close
up that hole and require that something useful being returned.
Regards,
Alan
-> richard
Regards,
Alan
On May 4, 2009, at 7:03 AM, Thomas Watson wrote:
In what context is this coming up? If you jar contains directory
entries the I would expect bundle.getResource("META-INF/") to
return a URL. But you are asking about the system bundle. Who is
calling getResource on the system bundle?
Tom
<graycol.gif>"Alan D. Cabrera" ---05/01/2009 11:03:29 PM---I'm not
sure why my system bundle needs to return a URL to META-INF/
<ecblank.gif>
From: <ecblank.gif>
"Alan D. Cabrera" <[email protected]>
<ecblank.gif>
To: <ecblank.gif>
OSGi Developer Mail List <[email protected]>
<ecblank.gif>
Date: <ecblank.gif>
05/01/2009 11:03 PM
<ecblank.gif>
Subject: <ecblank.gif>
[osgi-dev] System bundle must provide a URL to its META-INF/?
I'm not sure why my system bundle needs to return a URL to META-INF/
from the getResource() call. Did I miss something in the specs?
Regards,
Alan
_______________________________________________
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
_______________________________________________
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
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev