Section 134.15.7 of the Subsystem Service Specification indicates that the Require-Bundle header for subsystems carries the same syntax as bundles. The syntax is defined in 3.13.1 of the core spec where bundle-version is listed as the correct attribute name. The same holds true for the osgi.wiring.bundle namespace in 8.4. The use of "version" in those sections you reference are typos.
>To: OSGi Developer Mail List <osgi-dev@mail.osgi.org> >From: Cristiano Gavião >Sent by: osgi-dev-boun...@mail.osgi.org >Date: 09/22/2015 06:44PM >Subject: [osgi-dev] Require-Bundle must use a version or >bundle-version attribute? > >Hi, > >In the context of a subsystem I'm in doubt about the Require-Bundle >header. > >In the constant org.osgi.framework.Constants.BUNDLE_VERSION_ATTRIBUTE >javadoc, from osgi.core-6.0.0.jar, we have this statement: > >The attribute value is encoded in the Require-Bundle manifest header >like: Require-Bundle: com.acme.module.test; bundle-version="1.1" > Require-Bundle: com.acme.module.test; bundle-version="[1.0,2.0)" > >but in the compendium spec version 6.0, we have those: > >134.2.1.5 >Require-Bundle: com.acme.chess; version= "[1.0, 2.0)" >The Require-Bundle header declares the required bundles for a Scoped >Subsystem. See Require-Bundle >on page 967. > 134.15.1.8 >Require-Bundle: com.acme.logging;version="[1.0, 1.1)" >The Require-Bundle header lists bundle requirements for bundle >capabilities that are to be imported >into a Scoped Subsystem. See Require-Bundle on page 967. > > >which is the right one? > >thanks, > >Cristiano > > _______________________________________________ >OSGi Developer Mail List >osgi-dev@mail.osgi.org >https://mail.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev