[ 
https://issues.apache.org/jira/browse/TUSCANY-3258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Simon Laws resolved TUSCANY-3258.
---------------------------------

       Resolution: Fixed
    Fix Version/s: Java-SCA-2.0

Now working in 2.x

> SCA 2.x should throw an exception when property type is not matched with 
> componentType
> --------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3258
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3258
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-2.0
>            Reporter: Ku Jun Guo
>             Fix For: Java-SCA-2.0
>
>
> When  I ran the otest case ASM_5036_TestCase, which is testing item ASM_50036:
> The property type specified for the property element of a
> component MUST be compatible with the type of the property
> with the same @name declared in the component type of the
> implementation used by the component. If no type is declared in
> the component property element, the type of the property
> declared in the componentType of the implementation MUST be
> used.
> My composite is :
> <property name="complexType" type="test:ComplexType2">
>               <value>
>                       <test:firstData>First data value</test:firstData>
>                       <test:secondData>Second data value</test:secondData>
>                       <test:thirdData>Second data value</test:thirdData>
>               </value>
>         </property>
> The componentType is :
> <property name="complexType" type="test:ComplexType1"/>
> The testcase didn't throw an exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to