felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BJ Hargrave <hargr...@us.ibm.com>
Subject Re: [jira] Assigned: (FELIX-339) Ensure bundle identifiers never get reused
Date Thu, 16 Aug 2007 23:04:31 GMT
Eric Swindell <eric.swindell@att.net> wrote on 2007-08-16 18:56:39:

> On Thursday 16 August 2007 05:47:37 pm BJ Hargrave wrote:
> > Use case: A bundle like Preference Service manages persistent storage 
> > other bundles based upon a bundles identity. This bundle needs to know
> > when a bundle for which it managing storage has permanently gone. If
> > bundle ids can be reused, the Prefs bundle would not be able to 
> > the original bundle's information and would provide it to the new 
> > The Prefs bundle might not be running at the time the original  bundle 
> > uninstalled and thus would not receive the UNINSTALLED event. So it 
> > rely on the fact that the framework guarantees that bundle ids are 
> > reused.
> Your premise implies that the implementation requirement takes higher 
> precedence than the spec. 

Huh? I am giving you an actual use case. Which is supports by the fact 
that bundle ids are not reused.

> Seems like the tail is wagging the dog :)  I 
> thought that symbolic name was added to the spec for bundle identity.

 Bundle symbolic name is NOT identity. Bundle ID is identity. Hence the 
ID. Multiple bundles can have the same symbolic name (with different 

> >
> > In any case, you can take my word for it, since I was there when all 
> > was first conceived. From the R1 spec:
> >
> > "Once its value is assigned to a bundle, that value must not be reused 
> > another bundle, even if the original bundle is uninstalled."
> If you read your prior posting and my prior reply, you'll see that 
> we agree on 
> the spec's interpretation.  You said that if the framework instance 
> was 'thrown away', then id consistency is not relevant.  I agree with 

I do NOT agree with this based upon my previous clarification of what I 
meant by framework instance.
> Eric

You can either take my word (as a spec author) that bundle ids are not to 
be reused. Or you can choose to believe otherwise. In any case I am tired 
of this thread. 


BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance

office: +1 386 848 1781
mobile: +1 386 848 3788

View raw message