Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4583

in union, if i give int & uint types together causing error for already defined

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0
    • Component/s: None
    • Environment:

      ONOS BUILD

    • Story Points:
      3

      Description

      ode: https://gerrit.onosproject.org/#/c/9406/2

      leaf eleven {
      type union

      { type int8; type int16; type int32; type int64; type uint8; type uint16; type uint32; type uint64; type string; type binary; //type boolean; }

      }

      Log:
      INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/ElevenUnion.java:[87,11] error: constructor ElevenUnion(short) is already defined in class ElevenUnion
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/ElevenUnion.java:[96,11] error: constructor ElevenUnion(int) is already defined in class ElevenUnion
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/ElevenUnion.java:[105,11] error: constructor ElevenUnion(long) is already defined in class ElevenUnion
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/ElevenUnion.java:[182,30] error: method of(short) is already defined in class ElevenUnion
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/ElevenUnion.java:[192,30] error: method of(int) is already defined in class ElevenUnion
      [ERROR] /home/root1/onos/utils/test/src/main/java/org/onosproject/yang/gen/v1/urn/cisco/params/xml/ns/yang/ospf/rev20201020/ospf/ElevenUnion.java:[202,30] error: method of(long) is already defined in class ElevenUnion
      [INFO] 6 errors
      [INFO]

        Attachments

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

          Activity

            People

            Assignee:
            bsaraswal bharat saraswal
            Reporter:
            sathishmurugesan sathishkumar murugesan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: