JDK-4747005 : getLocalHost() can NPE if local host not known to name service.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2002-09-13
  • Updated: 2002-09-20
  • Resolved: 2002-09-20
Related Reports
Duplicate :  
Description
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.






Comments
EVALUATION With the intergration of 4692867 this issue disappears so closing this as a dup.
11-06-2004