Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-146

Incorrect use of format strings in generated code when backing type is an array (binding spec v2)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Operating System: Linux
      Platform: PC

      +++ This bug was initially created as a clone of MDSAL-29 +++

      Yangtools will currently generate code like:

      throw new IllegalArgumentException(String.format("Invalid length: {}, expected: {}.", value, lengthConstraints));

      This is incorrect since {} is a slf4j-style format specifier when you want a format string.

            jakubtoth-0 Jakub Toth
            martin.ciglan Martin Ciglan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: