[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Problem with "uses" constraint


I am able to reproduce.  I opened bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=145067 to track the issue.  The issue is the resolver does not properly handle when an export is dropped as a result of importing the package from another bundle.  This causes us to inaccurately flag a uses conflict while processing other imports for the bundle.

Thanks Niclas.

Tom



Niclas Hedhman <niclas@xxxxxxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx

06/02/2006 08:40 AM

Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To
equinox-dev@xxxxxxxxxxx
cc
Subject
[equinox-dev] Problem with "uses" constraint






Hi,

I have been reading p46 of R4 spec over and over again, and I think I have
found a problem in Equinox, but need some clarification if my thinking is
right...


We start Equinox with;

org.eclipse.osgi            (3.2.0.v20060510)
org.eclipse.osgi.services   (3.1.100.v20060511)
pax-logging-service         (0.8.1)

My bundle (Pax Logging) the following Imports and Exports;
(formatting added for readability)

Import-Package:
   org.knopflerfish.service.log,
   org.ops4j.pax.logging,
   org.osgi.framework,
   org.osgi.service.log,
   org.w3c.dom,
   org.xml.sax,
   org.xml.sax.helpers

Export-Package:
   org.ops4j.pax.logging;
      version=1.0,
   org.knopflerfish.service.log;
      uses:="org.osgi.service.log,org.osgi.framework";
      version=1.1,
   org.osgi.service.log;
      version=1.3.0


Equinox reports the following message;
org.osgi.framework.BundleException: The bundle could not be resolved. Reason:
Missing Constraint: Import-Package: org.knopflerfish.service.log;
version="0.0.0", Package uses conflict: Import-Package: org.osgi.service.log;
version="0.0.0", Missing Constraint: Import-Package: org.osgi.service.log;
version="0.0.0"

IIUIC, the spec agrees with me when I think that this is no a conflict
situation at all.

Furthermore, if I load pax-logging-service before org.eclipse.osgi.services,
there are also no constraint conflict.

Can anybody share some light on what is happening??


Cheers
Niclas
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev