Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3258

SCA 2.x should throw an exception when property type is not matched with componentType

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kujunguo Ku Jun Guo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: