Created
January 29, 2014 13:41
-
-
Save scheakur/8688212 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sun.net.InetAddressCachePolicy; | |
import java.lang.reflect.Field; | |
public class Test2 { | |
public static void main(String... args) throws Exception { | |
Field f = InetAddressCachePolicy.class.getDeclaredField("cachePolicy"); | |
f.setAccessible(true); | |
System.out.println(f.get(null)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment