Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-90

Simple type derivation relationship lost when binding DTO is translated to DOM and back.

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed
    • Low
    • Resolution: Unresolved
    • None
    • None
    • None
    • 3658

    Description

      Having model:

       

      typedef uri {
        type string;
      }
      typedef specialized-uri {
        type uri;
      }
      
      container data {
        leaf value {
          type uri;
        }
      }

       

      Will result in following class hierarchy for typedefs:

      SpecializedUri extends Uri

      Container data will have builder with setValue(Uri value) method, which can accept also SpecializedUri,
      but when serializing / deserializing data - this information that originally SpecializedUri was used is lost and returned value is only of type Uri.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              tony.tkacik@gmail.com Tony Tkacik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: