Review request for 6817246

Mandy Chung Mandy.Chung at Sun.COM
Tue Mar 17 15:05:02 PDT 2009


6817246: Redundant call to set InetAddressCachePolicy to FOREVER if not 
set during initialization

Webrev at:
    http://cr.openjdk.java.net/~mchung/6817246/webrev.00/

System.setSecurityManager0 calls 
InetAddressCachePolicy.setIfNotSet(InetAddressCachePolicy.FOREVER) to 
set the cache policy to FOREVER if not set by the command-line property. 
  In fact, this call is redundant since the default cache policy is 
already set to FOREVER by the static initializer of the 
InetAddressCachePolicy class.

This fix is to remove the InetAddressCachePolicy.setIfNotSet method call 
from System.setSecurityManager0.

I ran the io and net jtreg tests.

Thanks
Mandy



More information about the net-dev mailing list