[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] Spec Interpretation
- From: Thomas Watson <tjwatson@xxxxxxxxxx>
- Date: Thu, 30 Jul 2009 12:50:02 -0500
- Delivered-to: email@example.com
You guessed it correctly. For bundles that contain a Bundle-ManifestVersion header (introduced in OSGi v4.0) with a value of 2 or greater the Bundle-SymbolicName header is required. But old bundles using the OSGi v3.0 specification will not have either of the Bundle-ManifestVersion or Bundle-SymoblicName headers. These types of bundles will return null from Bundle.getSymbolicName().
Don Laidlaw ---07/30/2009 12:10:21 PM---I have a quick question on the OSGi 4.1 specification.
Don Laidlaw <Don.Laidlaw@xxxxxxxxx>
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
07/30/2009 12:10 PM
[equinox-dev] Spec Interpretation
I have a quick question on the OSGi 4.1 specification.
In the specification, section 126.96.36.199 and section 3.5.2 both say that the Bundle-SymbolicName header is required. But the documentation on the org.osgi.framework.Bundle class says that getSymbolicName() may return a null if no symbolic name is set.
Under what circumstances could getSymbolicName() ever return null if the header is required? Is this perhaps to support old versions of the spec where the Bundle-SymbolicName was not manditory?
Don Laidlaw | Sr. Research Engineer | Infor | office: +1 902-576-5185 | mobile: +1 902-401-6771 | don.laidlaw@xxxxxxxxx
equinox-dev mailing list