This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: FYI: Fix InetAddress.getByName and loopback issues
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Fri, 13 Aug 2004 18:23:11 -0400
- Subject: Re: FYI: Fix InetAddress.getByName and loopback issues
- References: <411D3F05.2070703@redhat.com>
Bryce McKinlay wrote:
Passing null to InetAddress.getByName() and getAllByName should return
the loopback InetAddress. Its possible to do this without the normal
security check - passing a null argument to SecurityManager would be a
NullPointerException. This also cleans up the security checks -
lookup() does not need to do a check becuase the public methods that
call it will have done it already. In the getByName() case, we were
actually doing the check 3 times - once in getByName, once in
getAllByName, and then again in lookup.
I also checked in some mauve tests for this.
Bryce