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

Mapping type collisions between yang built-in uint* and int*

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 5.0.0
    • Binding codegen
    • None

    Description

      module test-unoin-types {
          namespace "urn:test:pattern";
          prefix union-types;
          revision 2018-04-03;
      
          container cont {
               leaf test {
                   type union {
                      type int8;
                      type int16;
                      type int32;
                      type int64;
                      type uint8;
                      type uint16;
                      type uint32;
                      type uint64; 
                 }
             }
          }
      }

      e.g. int16 and uint8 both map to java.lang.Short that leads to constructors conflict.

      Attachments

        Issue Links

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

          Activity

            People

              rovarga Robert Varga
              JieHan2017 Jie Han
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: