Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347142

Summary: Need for a filter builder for building requirement filters
Product: [Eclipse Project] Equinox Reporter: Thomas Watson <tjwatson>
Component: FrameworkAssignee: equinox.framework-inbox <equinox.framework-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: hargrave
Version: 3.7   
Target Milestone: Juno   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Thomas Watson CLA 2011-05-25 08:35:59 EDT
In bug 346979 we needed to generate a filter from a set of arbitrary attributes.  It became evident that we need some kind of filter builder to make such code more simple.  Some other things to note:

- VersionRange is not completely correct with respect to open ranges (i.e. >=1.0).  It uses max.max.max as the absolute maximum version, but max.max.max.qualifier > max.max.max.
- VersionRange could add a method to get a filter string that represents the range
Comment 1 Thomas Watson CLA 2011-06-08 11:30:59 EDT
Move all 3.8 bugs to Juno.
Comment 2 Thomas Watson CLA 2011-08-04 16:10:40 EDT
There is a proposal in OSGi to add a VersionRange class to the org.osgi.framework package.  This VersionRange class may contain a toFilterString() method.  If this happens then we can consider using that method to generate the filter string.  We will also consider making the Equinox VersionRange extend the osgi VersionRange.
Comment 3 Thomas Watson CLA 2012-02-29 12:15:27 EST
This is no longer valid.  The OSGi VersionRange class now provides the method we need to create a filter for version ranges.