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.

Reply via email to