Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8297311

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 8, 11, 17, 20
    • 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).

            jpai Jaikiran Pai
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: