If host is not set URL.getHost() behavior is undefined

XMLWordPrintable

    • generic
    • solaris_2.4

      [prasadw 960515]

      4008$ more T.java
      import java.net.*;

      class T {
          public static void main(String argv[]) throws Exception {
              URL u = new URL("file:/prasadw/");

              System.out.println(u.getHost());
          }
      }
      4009$ javac T.java
      4010$ java T

      4011$

            Assignee:
            David Brown (Inactive)
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: