Hi

Am 20.09.2013 um 14:30 schrieb Roland:

> Hello Felix-experts,
> I just realized that a dynamic import (DynamicImport-Package) of a package
> with an invalid OSGi-version (e.g. 1.0-SNAPSHOT) fails, but not a static
> import (Import-Package). What's the difference?

If the version would be wrong on the Import-Package header, it would fail, too.

But: IIRC the bundle plugin fixes the version on the Import-Package header but 
not on the DynamicImport-Package header.

But then: using 1.0-SNAPSHOT leads me to assume you are using the bundle 
version as the package version ? This is not really appropriate since an 
exported package will evolve differently than the bundle it is part of and we 
must not link the two versions.

Regards
Felix

> 
> Thanks!
> Roland
> 
> 
> 
> --
> View this message in context: 
> http://apache-felix.18485.x6.nabble.com/Invalid-OSGi-Version-Differences-between-DynamicImport-Package-and-Import-Package-tp5005096.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to