Code Review 6992859: InetAddressCachePolicy.setIfNotSet() fails
Chris Hegarty
chris.hegarty at oracle.com
Tue Oct 19 08:05:36 PDT 2010
Alan, Michael,
While this is an internal API and not supported, there is certainly an
issue in the implementation that crept in a while back. setIfNotSet is
using cachePolicy while get() may not return this value (depending on
whether there is a security manager installed, or if the policy has been
set by a property).
This change simply sets the default policy during initialization and
allows setIfNotSet to increase the caching time. There is no regression
test since this is small implementation issue.
http://cr.openjdk.java.net/~chegar/6992859/webrev.00/webrev/
Thanks,
-Chris.
More information about the net-dev
mailing list