Duplicate binding name not flagged as error
-------------------------------------------
Key: TUSCANY-1937
URL: https://issues.apache.org/jira/browse/TUSCANY-1937
Project: Tuscany
Issue Type: Bug
Components: Java SCA Core Runtime
Affects Versions: Java-SCA-1.0.1
Reporter: Simon Nash
Fix For: Java-SCA-Next
If multiple bindings on a service or reference have the same name (explicit or
defaulted), Tuscany should raise an error because this is illegal according to
the SCA Assembly specification. Both of the following modifications of
myapp.scdl in samples/callback-ws-client should be illegal, but currently they
are both accepted:
- - - - - - - - example 1 - - - - - - - -
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://myapp"
name="myapp">
<component name="MyClientComponent">
<implementation.java class="myapp.MyClientImpl" />
<reference name="myService">
<interface.java interface="myserver.MyService"
callbackInterface="myserver.MyServiceCallback" />
<binding.ws name="fred"
uri="http://localhost:8086/MyServiceComponent" />
<binding.sca name="fred" />
<callback>
<binding.ws />
</callback>
</reference>
</component>
</composite>
- - - - - - - - example 2 - - - - - - - -
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://myapp"
name="myapp">
<component name="MyClientComponent">
<implementation.java class="myapp.MyClientImpl" />
<reference name="myService">
<interface.java interface="myserver.MyService"
callbackInterface="myserver.MyServiceCallback" />
<binding.ws uri="http://localhost:8086/MyServiceComponent" />
<binding.sca />
<callback>
<binding.ws />
</callback>
</reference>
</component>
</composite>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]