Affects Version/s: Java-SCA-2.x
Fix Version/s: Java-SCA-2.x
OASIS SCA Assembly testcase Test_ASM_5024 includes a reference which has a @target attribute declared and also a <binding/> subelement present:
<reference name="Reference1" target="TestComponent2/Service1">
<!-- A binding which contradicts the @target attribute -->
This configuration is incorred according to the OASIS SCA Assembly specification and should be rejected by an SCA runtime.
However, Tuscany runs this component and then fails with a NullPointerException when the component attempts to invoke the reference configured as above.