Improve exception message thrown by java.net.HostPortrange::toLowerCase(String s)

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 8, 11, 17, 20
    • Component/s: core-libs
    • None
    • b26

      File: ./java.base/share/classes/java/net/HostPortrange.java

      Code:

           } else {
                  throw new IllegalArgumentException("Invalid characters in hostname");
              }

      It would be useful for debugging and test failures to report at least what the invalid characters might be, if not the complete host name (though I realise there may be some security concerns related to that).

            Assignee:
            Jaikiran Pai
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: