Code Review 6992859: InetAddressCachePolicy.setIfNotSet() fails
chris.hegarty at oracle.com
Tue Oct 19 08:05:36 PDT 2010
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.
More information about the net-dev