TypeStatement currently takes String argument, which is not entirely accurate, as it does not provide type expansion required for lookup.
This leads to SourceExceptions during building of effective statement rather than a failure to parse the argument when the statement is being defined.
Fix the definition of TypeStatement and TypeEffectiveStatement so that these take a QName argument.
This leads to the question of which QNameModule should built-in types resolve – and that should be "urn:ietf:params:xml:ns:yang:1", as defined in org.opendaylight.yangtools.yang.model.util.BaseTypes. During unprefixed parsing, hence AbstractTypeStatementSupport needs to account for this manually.
- split to
-
YANGTOOLS-1262 Index TypedefNamespace
- Resolved