public final class sun.net.InetAddressCachePolicy
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.net.InetAddressCachePolicy
super_class: java.lang.Object
{
private static final java.lang.String cachePolicyProp;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "networkaddress.cache.ttl"
private static final java.lang.String cachePolicyPropFallback;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "sun.net.inetaddr.ttl"
private static final java.lang.String negativeCachePolicyProp;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "networkaddress.cache.negative.ttl"
private static final java.lang.String negativeCachePolicyPropFallback;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "sun.net.inetaddr.negative.ttl"
public static final int FOREVER;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
public static final int NEVER;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int DEFAULT_POSITIVE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 30
private static int cachePolicy;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int negativeCachePolicy;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static boolean propertySet;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static boolean propertyNegativeSet;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: iconst_m1
putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
1: iconst_0
putstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
2: aconst_null
astore 0
start local 0 3: new java.lang.Integer
dup
4: new sun.net.InetAddressCachePolicy$1
dup
invokespecial sun.net.InetAddressCachePolicy$1.<init>:()V
5: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
6: invokespecial java.lang.Integer.<init>:(Ljava/lang/String;)V
astore 0
7: goto 9
StackMap locals: java.lang.Integer
StackMap stack: java.lang.NumberFormatException
8: pop
9: StackMap locals:
StackMap stack:
aload 0
ifnull 15
10: aload 0
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
11: getstatic sun.net.InetAddressCachePolicy.cachePolicy:I
ifge 13
12: iconst_m1
putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
13: StackMap locals:
StackMap stack:
iconst_1
putstatic sun.net.InetAddressCachePolicy.propertySet:Z
14: goto 25
15: StackMap locals:
StackMap stack:
new sun.security.action.GetIntegerAction
dup
ldc "sun.net.inetaddr.ttl"
invokespecial sun.security.action.GetIntegerAction.<init>:(Ljava/lang/String;)V
16: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 0
17: aload 0
ifnull 23
18: aload 0
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
19: getstatic sun.net.InetAddressCachePolicy.cachePolicy:I
ifge 21
20: iconst_m1
putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
21: StackMap locals:
StackMap stack:
iconst_1
putstatic sun.net.InetAddressCachePolicy.propertySet:Z
22: goto 25
23: StackMap locals:
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 25
24: bipush 30
putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
25: StackMap locals:
StackMap stack:
new java.lang.Integer
dup
26: new sun.net.InetAddressCachePolicy$2
dup
invokespecial sun.net.InetAddressCachePolicy$2.<init>:()V
27: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
28: invokespecial java.lang.Integer.<init>:(Ljava/lang/String;)V
astore 0
29: goto 31
StackMap locals:
StackMap stack: java.lang.NumberFormatException
30: pop
31: StackMap locals:
StackMap stack:
aload 0
ifnull 37
32: aload 0
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
33: getstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
ifge 35
34: iconst_m1
putstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
35: StackMap locals:
StackMap stack:
iconst_1
putstatic sun.net.InetAddressCachePolicy.propertyNegativeSet:Z
36: goto 44
37: StackMap locals:
StackMap stack:
new sun.security.action.GetIntegerAction
dup
ldc "sun.net.inetaddr.negative.ttl"
invokespecial sun.security.action.GetIntegerAction.<init>:(Ljava/lang/String;)V
38: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 0
39: aload 0
ifnull 44
40: aload 0
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
41: getstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
ifge 43
42: iconst_m1
putstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
43: StackMap locals:
StackMap stack:
iconst_1
putstatic sun.net.InetAddressCachePolicy.propertyNegativeSet:Z
end local 0 44: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
3 44 0 tmp Ljava/lang/Integer;
Exception table:
from to target type
3 7 8 Class java.lang.NumberFormatException
25 29 30 Class java.lang.NumberFormatException
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/InetAddressCachePolicy;
public static synchronized int get();
descriptor: ()I
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.net.InetAddressCachePolicy.cachePolicy:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static synchronized int getNegative();
descriptor: ()I
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public static synchronized void setIfNotSet(int);
descriptor: (I)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.net.InetAddressCachePolicy.propertySet:Z
ifne 3
1: iload 0
getstatic sun.net.InetAddressCachePolicy.cachePolicy:I
invokestatic sun.net.InetAddressCachePolicy.checkValue:(II)V
2: iload 0
putstatic sun.net.InetAddressCachePolicy.cachePolicy:I
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 newPolicy I
MethodParameters:
Name Flags
newPolicy
public static synchronized void setNegativeIfNotSet(int);
descriptor: (I)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic sun.net.InetAddressCachePolicy.propertyNegativeSet:Z
ifne 2
1: iload 0
putstatic sun.net.InetAddressCachePolicy.negativeCachePolicy:I
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 newPolicy I
MethodParameters:
Name Flags
newPolicy
private static void checkValue(int, int);
descriptor: (II)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iconst_m1
if_icmpne 2
1: return
2: StackMap locals:
StackMap stack:
iload 1
iconst_m1
if_icmpeq 5
3: iload 0
iload 1
if_icmplt 5
4: iload 0
iconst_m1
if_icmpge 7
5: StackMap locals:
StackMap stack:
new java.lang.SecurityException
dup
ldc "can't make InetAddress cache more lax"
6: invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 newPolicy I
0 8 1 oldPolicy I
MethodParameters:
Name Flags
newPolicy
oldPolicy
}
SourceFile: "InetAddressCachePolicy.java"
NestMembers:
sun.net.InetAddressCachePolicy$1 sun.net.InetAddressCachePolicy$2
InnerClasses:
sun.net.InetAddressCachePolicy$1
sun.net.InetAddressCachePolicy$2