Skip to content

FELIX-6313 - handle modules names that are different from BSN#25

Merged
tjwatson merged 1 commit intoapache:masterfrom
tjwatson:FELIX-6313
Jul 29, 2020
Merged

FELIX-6313 - handle modules names that are different from BSN#25
tjwatson merged 1 commit intoapache:masterfrom
tjwatson:FELIX-6313

Conversation

@tjwatson
Copy link
Member

JPMS modules may have a name that does not match the
Bundle-SymbolicName specified in the module bundle manifest.
OSGi require-bundle symantics closely match the symantics
of JMPS module requires. The require-bundle wire in OSGi
is a natural fit when trying to map non-OSGi JPMS modules
as OSGi connect bundles in Atomos. But this mapping depends
on the BSN and the module names to match. When they don't
then the conversion of a module requires to a require-bundle
needs to account for the fact that the required module will
have a different BSN within the OSGi framework.

This change detects the mismatch and will use the correct
BSN for the require-bundle wire for the connect bundle.

JPMS modules may have a name that does not match the
Bundle-SymbolicName specified in the module bundle manifest.
OSGi require-bundle symantics closely match the symantics
of JMPS module requires.  The require-bundle wire in OSGi
is a natural fit when trying to map non-OSGi JPMS modules
as OSGi connect bundles in Atomos.  But this mapping depends
on the BSN and the module names to match.  When they don't
then the conversion of a module requires to a require-bundle
needs to account for the fact that the required module will
have a different BSN within the OSGi framework.

This change detects the mismatch and will use the correct
BSN for the require-bundle wire for the connect bundle.
@tjwatson tjwatson merged commit 4bc0286 into apache:master Jul 29, 2020
@tjwatson tjwatson deleted the FELIX-6313 branch July 29, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant