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

no constructor for indentityref in union

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 5883

    Description

      The generated java code for union with identityref doens't include a constructor for identityref.

      module union-with-identityref {
      yang-version 1;
      namespace "urn:opendaylight:yang:union:test";
      prefix "uniontest";

      description "test union with identityref";

      revision "2016-05-09";

      identity ident-base;
      identity ident-one

      { base ident-base; }
      identity ident-two { base ident-base; }

      typedef union-type {
      type union {
      type uint8;
      type identityref

      { base ident-base; }

      }
      }
      }

      generated java code
      public class UnionType
      implements Serializable {
      private static final long serialVersionUID = 4724108168179933454L;
      private final java.lang.Short _uint8;
      private final char[] _value;

      public UnionType(java.lang.Short _uint8)

      { super(); this._uint8 = _uint8; this._value = _uint8.toString().toCharArray(); }

      ...

      Attachments

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

        Activity

          People

            yamahata Isaku Yamahata
            yamahata Isaku Yamahata
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: