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

Examine SchemaContextUtil.findCorrectTargetFromGrouping()

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 1024

    Description

      for (UsesNode u : m.getUses()) {
      SchemaNode targetGrouping = findNodeInSchemaContext(ctx, u.getGroupingPath().getPath());
      if (!(targetGrouping instanceof GroupingDefinition))

      { throw new IllegalArgumentException(String.format("Failed to generate code for augment in %s", u)); }

      GroupingDefinition gr = (GroupingDefinition) targetGrouping;
      result = gr.getDataChildByName(node.getQName().getLocalName());
      }

      Seems to be missing break; after result.

      Attachments

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

        Activity

          People

            tony.tkacik@gmail.com Tony Tkacik
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: