Community
Participate
Working Groups
Equinox should drop optional package imports to avoid uses constraint failures, but the attached bundles show a case in which this does not happen. The manifests are as follows: Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-SymbolicName: toxic-exporter Export-Package: toxic;uses:="javax.transaction",javax.transaction;version="1" and: Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-SymbolicName: toxic-importer Import-Package: toxic,javax.transaction;version="[0, 0]";resolution:="optional" Note that (in vanilla Equinox) javax.transaction is exported at version 0 by the system bundle. Steps to reproduce: 1. Run Equinox 3.7.1.R37x_v20110808-1106. 2. Install the attached bundles (which contain the above manifests). 3. Start toxic-importer. 4. Observe that toxic-importer fails to resolve due to a uses constraint failure. This bug was observed while diagnosing bug 366218.
Created attachment 208306 [details] bundle to reproduce problem
Created attachment 208307 [details] bundle to reproduce problem
Please note that this bug is not urgent as the user's original "exporter" bundle was badly formed and reworking it remove the resolution failure.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.