Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-247

Classes generated for union involving a typedef of boolean fail

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Mac OS
      Platform: PC

    • 1475

    Description

      If you typedef a boolean:

      typedef is-present

      { type boolean; }

      grouping vlan-id-attributes {
      leaf vlan-id {
      type union

      { type match:is-present; type l2t:vlan-id; }

      }
      }

      Results in:

      [ERROR] symbol: method getValue()
      [ERROR] location: variable _isPresent of type IsPresent
      [ERROR] /Users/hagbard/try/controller/opendaylight/md-sal/model/model-flow-base/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/urn/opendaylight/model/match/types/rev131026/VlanIdAttributes.java:[40,36] error: cannot find symbol
      [ERROR] -> [Help 1]

      It appears that there is a built in call to getValue, but boolean provides isValue.

      Attachments

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

        Activity

          People

            hagbard Ed Warnicke
            hagbard Ed Warnicke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: