Reference target attributes must not override component properties
authorThomas Watson <tjwatson@us.ibm.com>
Tue, 22 Jun 2021 20:25:04 +0000 (15:25 -0500)
committerThomas Watson <tjwatson@us.ibm.com>
Tue, 22 Jun 2021 20:25:04 +0000 (15:25 -0500)
commitb503f5d018b1749d9e226de378ddb423d894198f
treea04aaa847f05359a1a0301569f28db825e862e50
parenta86ef80595ca82b8ec61d5a4422447779f37499e
Reference target attributes must not override component properties

For DS 15 components the reference target attributes must not
override the component properties specified by the property or
properties elements, regardless of the order the reference
element occurs in the component XML.

For DS components <1.5 the order the reference occurs
must still work such that the last one specified
wins
scr/src/main/java/org/apache/felix/scr/impl/metadata/ComponentMetadata.java
scr/src/main/java/org/apache/felix/scr/impl/metadata/PropertyMetadata.java
scr/src/main/java/org/apache/felix/scr/impl/xml/XmlHandler.java
scr/src/test/java/org/apache/felix/scr/integration/SatisfyingConditionTest.java
scr/src/test/resources/integration_test_satisfying_condition.xml