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

Test: java/net/InetAddress/IPv4Formats.java should use a better name to generate an UHE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-libs
    • None
    • beta
    • generic
    • generic

      java/net/InetAddress/IPv4Formats.java uses the name 'hello' to test for InetAddress.getByName() throwing UnknownHostException. Not a very good name for such a test as it is possible to have a machine named 'hello' on a network. It should use a fully qualified name with a non existing domain which is basically the only way to be fairly certain it will never exist on any of the machines the test is run on.

            jccollet Jean-Christophe Collet (Inactive)
            jccollet Jean-Christophe Collet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: