Status: New
Owner: ----

New issue 280 by mcculls: Minor patch to the OSGi headers: add version  
ranges to imported packages
http://code.google.com/p/google-guice/issues/detail?id=280

The attached patch makes the following adjustments to the OSGi headers:

1) imports are now versioned as "[v,v+1)" ie. treat all versions from the
current level, up to but not including the next major level, as compatible

2) re-enable calculation of "uses" clause, which helps with OSGi resolving

3) add dynamic import of AOP Alliance package, which lets developers start
using Guice without AOP but also means they can add the AOP bundle once
they want to intercept methods (previously we marked the AOP import as an
"optional" import, which means it's only checked for once when the bundle
resolves - whereas "dynamic" imports are checked whenever they're needed)

4) exclude some bogus imports that are discovered because we generate the
manifest based on the original classes that still have dependencies to the
pre-JarJar'd packages.

The last two changes are specific to the main Guice jar and therefore went
into "build.xml" rather than "common.xml". This patch also bumps the Bnd
Tool to the latest version, 0.0.305:

   http://www.aqute.biz/repo/biz/aQute/bnd/0.0.305/bnd-0.0.305.jar

This is a low priority issue because it merely improves the OSGi metadata
rather than fixes a bug, however it would be nice to see it added before
the next release :)

Attachments:
        google-guice-osgi-version-ranges.txt  2.4 KB
        bnd-0.0.305.jar  518 KB

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to