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

getLocalHost() can NPE if local host not known to name service.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1
    • core-libs
    • None
    • generic
    • generic


      If the local host isn't known to the name service then getLocalHost() can
      NPE on second and subsequent calls whilst the host is still in the
      negative cache -- ie: for 10 seconds after getLocalHost() throws UHE any
      subsequent call to getLocalHost() will result in an NPE.

      This issue should be fixed in conjunction with the re-structring of the
      InetAddress cache required for 4692867.





            Unassigned Unassigned
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: