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

Reference type in same module with prefix fails to compile

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 5712

    Description

      Using latest Boron snapshots.

      Using the following simple module description:
      --------------------
      module bad {
      namespace "urn:opendaylight:bad";
      prefix "bad";

      revision 2016-04-11

      { description "Initial revision"; }

      typedef thing

      { type uint32; }

      typedef thing2

      { type bad:thing; // Error on this line //type thing; }

      }
      ---------------

      Yangtools apparently fails to compile this. It can't resolve the type reference in the line marked "Error on this line". If I instead comment out that line and comment back in the second line, it compiles without error.

      The reason I stated "apparently" is because I see this error when I view the module in the Eclipse YangIDE plugin, but if I build the corresponding project on the command line, I do not see any error for this.

      Attachments

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

        Activity

          People

            pkajsa Peter Kajsa
            dkarr David M. Karr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: