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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 5.0.0
    • None
    • Binding codegen
    • None

      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.

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

              Created:
              Updated:
              Resolved: