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

Remove UnknownStatement.getExtensionDefinition()

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 8.0.0
    • model-api

    Description

      UnknownSchemaNode has an unfortunate design flaw, where it can recursively refer to itself if there are other UnknownSchemaNode in its ExtensionDefinition (and those use that statement).

      YANGTOOLS-1196 effectively eliminated this use case from our codebase, as we do not support any extensions which would have such interdependencies, but there are such extensions out there and those cannot be reasonably implemented now.

      The crux of the problem is UnknownSchemaNode.getExtensionDefinition(), which is not really useful, as we already have the corresponding QName and the extension can easily be looked up from EffectiveModelContext. Remove this method.

      Attachments

        Issue Links

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

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: