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

Incorrect use of format strings in generated code when backing type is an array

XMLWordPrintable

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

      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
            readams Rob Adams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: