Skip to content

FELIX-6888: Fix BundleDependency.setPropagate(instance, method) - #608

Open
pderop wants to merge 1 commit into
apache:masterfrom
pderop:FELIX-6888
Open

pderop wants to merge 1 commit into
apache:masterfrom
pderop:FELIX-6888

Conversation

@pderop

@pderop pderop commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Motivation:

BundleDependencyImpl redeclared the propagation fields already defined in AbstractDependency. setPropagate(instance, method) set the parent fields while getProperties() read the subclass ones, always null: the callback was never invoked and all bundle manifest headers were propagated as service properties.

Modification:

Remove the redeclared fields so the inherited ones are used, and add a unit test.

Result:

The propagation callback is invoked, including on dependency copies, and only the properties it returns are propagated.

Motivation:

BundleDependencyImpl redeclared the propagation fields already defined
in AbstractDependency. setPropagate(instance, method) set the parent
fields while getProperties() read the subclass ones, always null: the
callback was never invoked and all bundle manifest headers were
propagated as service properties.

Modification:

Remove the redeclared fields so the inherited ones are used, and add a
unit test.

Result:

The propagation callback is invoked, including on dependency copies,
and only the properties it returns are propagated.
@pderop pderop self-assigned this Nov 27, 2026
@pderop pderop changed the title FELIX-6888: DM: fix BundleDependency.setPropagate(instance, method) FELIX-6888: Fix BundleDependency.setPropagate(instance, method) Nov 27, 2026
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