FYI: Fix InetAddress.getByName and loopback issues
Bryce McKinlay
mckinlay@redhat.com
Sat Aug 14 17:18:00 GMT 2004
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'm checking this in.
Regards
Bryce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libjava-inetaddress.patch
Type: text/x-patch
Size: 4426 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040814/e5cbbd02/attachment.bin>
More information about the Java-patches
mailing list