public final class sun.net.spi.nameservice.dns.DNSNameService implements sun.net.spi.nameservice.NameService
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.net.spi.nameservice.dns.DNSNameService
super_class: java.lang.Object
{
private java.util.LinkedList<java.lang.String> domainList;
descriptor: Ljava/util/LinkedList;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/LinkedList<Ljava/lang/String;>;
private java.lang.String nameProviderUrl;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private static java.lang.ThreadLocal<java.lang.ref.SoftReference<sun.net.spi.nameservice.dns.DNSNameService$ThreadContext>> contextRef;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/lang/ThreadLocal<Ljava/lang/ref/SoftReference<Lsun/net/spi/nameservice/dns/DNSNameService$ThreadContext;>;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lsun/net/spi/nameservice/dns/DNSNameService;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.net.spi.nameservice.dns.DNSNameService.$assertionsDisabled:Z
3: new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
4: putstatic sun.net.spi.nameservice.dns.DNSNameService.contextRef:Ljava/lang/ThreadLocal;
5: return
LocalVariableTable:
Start End Slot Name Signature
private javax.naming.directory.DirContext getTemporaryContext();
descriptor: ()Ljavax/naming/directory/DirContext;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=1
start local 0 0: getstatic sun.net.spi.nameservice.dns.DNSNameService.contextRef:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.lang.ref.SoftReference
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: aconst_null
astore 3
start local 3 3: aload 0
getfield sun.net.spi.nameservice.dns.DNSNameService.nameProviderUrl:Ljava/lang/String;
ifnonnull 5
4: invokestatic sun.net.dns.ResolverConfiguration.open:()Lsun/net/dns/ResolverConfiguration;
invokevirtual sun.net.dns.ResolverConfiguration.nameservers:()Ljava/util/List;
astore 3
5: StackMap locals: java.lang.ref.SoftReference sun.net.spi.nameservice.dns.DNSNameService$ThreadContext java.util.List
StackMap stack:
aload 1
ifnull 9
aload 1
invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
checkcast sun.net.spi.nameservice.dns.DNSNameService$ThreadContext
dup
astore 2
ifnull 9
6: aload 0
getfield sun.net.spi.nameservice.dns.DNSNameService.nameProviderUrl:Ljava/lang/String;
ifnonnull 9
7: aload 2
invokevirtual sun.net.spi.nameservice.dns.DNSNameService$ThreadContext.nameservers:()Ljava/util/List;
aload 3
invokeinterface java.util.List.equals:(Ljava/lang/Object;)Z
ifne 9
8: aconst_null
astore 2
9: StackMap locals:
StackMap stack:
aload 2
ifnonnull 27
10: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
astore 4
start local 4 11: aload 4
ldc "java.naming.factory.initial"
12: ldc "com.sun.jndi.dns.DnsContextFactory"
13: invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: aload 0
getfield sun.net.spi.nameservice.dns.DNSNameService.nameProviderUrl:Ljava/lang/String;
astore 5
start local 5 15: aload 5
ifnonnull 19
16: aload 3
invokestatic sun.net.spi.nameservice.dns.DNSNameService.createProviderURL:(Ljava/util/List;)Ljava/lang/String;
astore 5
17: aload 5
invokevirtual java.lang.String.length:()I
ifne 19
18: new java.lang.RuntimeException
dup
ldc "bad nameserver configuration"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals: java.util.Hashtable java.lang.String
StackMap stack:
aload 4
ldc "java.naming.provider.url"
aload 5
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
20: new sun.net.spi.nameservice.dns.DNSNameService$1
dup
aload 0
aload 4
invokespecial sun.net.spi.nameservice.dns.DNSNameService$1.<init>:(Lsun/net/spi/nameservice/dns/DNSNameService;Ljava/util/Hashtable;)V
21: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast javax.naming.directory.DirContext
astore 6
start local 6 22: goto 25
end local 6 StackMap locals:
StackMap stack: java.security.PrivilegedActionException
23: astore 7
start local 7 24: aload 7
invokevirtual java.security.PrivilegedActionException.getException:()Ljava/lang/Exception;
checkcast javax.naming.NamingException
athrow
end local 7 start local 6 25: StackMap locals: javax.naming.directory.DirContext
StackMap stack:
new sun.net.spi.nameservice.dns.DNSNameService$ThreadContext
dup
aload 6
aload 3
invokespecial sun.net.spi.nameservice.dns.DNSNameService$ThreadContext.<init>:(Ljavax/naming/directory/DirContext;Ljava/util/List;)V
astore 2
26: getstatic sun.net.spi.nameservice.dns.DNSNameService.contextRef:Ljava/lang/ThreadLocal;
new java.lang.ref.SoftReference
dup
aload 2
invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
end local 6 end local 5 end local 4 27: StackMap locals:
StackMap stack:
aload 2
invokevirtual sun.net.spi.nameservice.dns.DNSNameService$ThreadContext.dirContext:()Ljavax/naming/directory/DirContext;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/net/spi/nameservice/dns/DNSNameService;
1 28 1 ref Ljava/lang/ref/SoftReference<Lsun/net/spi/nameservice/dns/DNSNameService$ThreadContext;>;
2 28 2 thrCtxt Lsun/net/spi/nameservice/dns/DNSNameService$ThreadContext;
3 28 3 nsList Ljava/util/List<Ljava/lang/String;>;
11 27 4 env Ljava/util/Hashtable<Ljava/lang/String;Ljava/lang/Object;>;
15 27 5 provUrl Ljava/lang/String;
22 23 6 dirCtxt Ljavax/naming/directory/DirContext;
25 27 6 dirCtxt Ljavax/naming/directory/DirContext;
24 25 7 pae Ljava/security/PrivilegedActionException;
Exception table:
from to target type
20 22 23 Class java.security.PrivilegedActionException
Exceptions:
throws javax.naming.NamingException
private java.util.ArrayList<java.lang.String> resolve(javax.naming.directory.DirContext, java.lang.String, java.lang.String[], int);
descriptor: (Ljavax/naming/directory/DirContext;Ljava/lang/String;[Ljava/lang/String;I)Ljava/util/ArrayList;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=14, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 1: new sun.net.spi.nameservice.dns.DNSNameService$2
dup
aload 0
aload 1
aload 2
aload 3
invokespecial sun.net.spi.nameservice.dns.DNSNameService$2.<init>:(Lsun/net/spi/nameservice/dns/DNSNameService;Ljavax/naming/directory/DirContext;Ljava/lang/String;[Ljava/lang/String;)V
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast javax.naming.directory.Attributes
astore 6
start local 6 3: goto 6
end local 6 StackMap locals: sun.net.spi.nameservice.dns.DNSNameService javax.naming.directory.DirContext java.lang.String java.lang.String[] int java.util.ArrayList
StackMap stack: java.security.PrivilegedActionException
4: astore 7
start local 7 5: new java.net.UnknownHostException
dup
aload 7
invokevirtual java.security.PrivilegedActionException.getException:()Ljava/lang/Exception;
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokespecial java.net.UnknownHostException.<init>:(Ljava/lang/String;)V
athrow
end local 7 start local 6 6: StackMap locals: javax.naming.directory.Attributes
StackMap stack:
aload 6
invokeinterface javax.naming.directory.Attributes.getAll:()Ljavax/naming/NamingEnumeration;
astore 7
start local 7 7: aload 7
invokeinterface javax.naming.NamingEnumeration.hasMoreElements:()Z
ifne 9
8: new java.net.UnknownHostException
dup
ldc "DNS record not found"
invokespecial java.net.UnknownHostException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: javax.naming.NamingEnumeration
StackMap stack:
aconst_null
astore 8
start local 8 10: goto 27
11: StackMap locals: java.net.UnknownHostException
StackMap stack:
aload 7
invokeinterface javax.naming.NamingEnumeration.next:()Ljava/lang/Object;
checkcast javax.naming.directory.Attribute
astore 9
start local 9 12: aload 9
invokeinterface javax.naming.directory.Attribute.getID:()Ljava/lang/String;
astore 10
start local 10 13: aload 9
invokeinterface javax.naming.directory.Attribute.getAll:()Ljavax/naming/NamingEnumeration;
astore 11
start local 11 14: goto 26
15: StackMap locals: javax.naming.directory.Attribute java.lang.String javax.naming.NamingEnumeration
StackMap stack:
aload 11
invokeinterface javax.naming.NamingEnumeration.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 12
start local 12 16: aload 10
ldc "CNAME"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 25
17: iload 4
iconst_4
if_icmple 19
18: new java.net.UnknownHostException
dup
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": possible CNAME loop"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.UnknownHostException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals: java.lang.String
StackMap stack:
aload 5
aload 0
aload 1
aload 12
aload 3
iload 4
iconst_1
iadd
invokevirtual sun.net.spi.nameservice.dns.DNSNameService.resolve:(Ljavax/naming/directory/DirContext;Ljava/lang/String;[Ljava/lang/String;I)Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.addAll:(Ljava/util/Collection;)Z
pop
20: goto 26
StackMap locals:
StackMap stack: java.net.UnknownHostException
21: astore 13
start local 13 22: aload 8
ifnonnull 26
23: aload 13
astore 8
end local 13 24: goto 26
25: StackMap locals:
StackMap stack:
aload 5
aload 12
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 12 26: StackMap locals:
StackMap stack:
aload 11
invokeinterface javax.naming.NamingEnumeration.hasMoreElements:()Z
ifne 15
end local 11 end local 10 end local 9 27: StackMap locals:
StackMap stack:
aload 7
invokeinterface javax.naming.NamingEnumeration.hasMoreElements:()Z
ifne 11
28: goto 31
StackMap locals:
StackMap stack: javax.naming.NamingException
29: astore 9
start local 9 30: new java.net.UnknownHostException
dup
aload 9
invokevirtual javax.naming.NamingException.getMessage:()Ljava/lang/String;
invokespecial java.net.UnknownHostException.<init>:(Ljava/lang/String;)V
athrow
end local 9 31: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.util.ArrayList.isEmpty:()Z
ifeq 33
aload 8
ifnull 33
32: aload 8
athrow
33: StackMap locals:
StackMap stack:
aload 5
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lsun/net/spi/nameservice/dns/DNSNameService;
0 34 1 ctx Ljavax/naming/directory/DirContext;
0 34 2 name Ljava/lang/String;
0 34 3 ids [Ljava/lang/String;
0 34 4 depth I
1 34 5 results Ljava/util/ArrayList<Ljava/lang/String;>;
3 4 6 attrs Ljavax/naming/directory/Attributes;
6 34 6 attrs Ljavax/naming/directory/Attributes;
5 6 7 pae Ljava/security/PrivilegedActionException;
7 34 7 ne Ljavax/naming/NamingEnumeration<+Ljavax/naming/directory/Attribute;>;
10 34 8 uhe Ljava/net/UnknownHostException;
12 27 9 attr Ljavax/naming/directory/Attribute;
13 27 10 attrID Ljava/lang/String;
14 27 11 e Ljavax/naming/NamingEnumeration<*>;
16 26 12 addr Ljava/lang/String;
22 24 13 x Ljava/net/UnknownHostException;
30 31 9 nx Ljavax/naming/NamingException;
Exception table:
from to target type
1 3 4 Class java.security.PrivilegedActionException
19 20 21 Class java.net.UnknownHostException
10 28 29 Class javax.naming.NamingException
Exceptions:
throws java.net.UnknownHostException
Signature: (Ljavax/naming/directory/DirContext;Ljava/lang/String;[Ljava/lang/String;I)Ljava/util/ArrayList<Ljava/lang/String;>;
MethodParameters:
Name Flags
ctx final
name final
ids final
depth
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.net.spi.nameservice.dns.DNSNameService.domainList:Ljava/util/LinkedList;
2: aload 0
aconst_null
putfield sun.net.spi.nameservice.dns.DNSNameService.nameProviderUrl:Ljava/lang/String;
3: new sun.security.action.GetPropertyAction
dup
ldc "sun.net.spi.nameservice.domain"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
4: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 5: aload 1
ifnull 8
aload 1
invokevirtual java.lang.String.length:()I
ifle 8
6: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.net.spi.nameservice.dns.DNSNameService.domainList:Ljava/util/LinkedList;
7: aload 0
getfield sun.net.spi.nameservice.dns.DNSNameService.domainList:Ljava/util/LinkedList;
aload 1
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
8: StackMap locals: sun.net.spi.nameservice.dns.DNSNameService java.lang.String
StackMap stack:
new sun.security.action.GetPropertyAction
dup
ldc "sun.net.spi.nameservice.nameservers"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
9: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 10: aload 2
ifnull 14
aload 2
invokevirtual java.lang.String.length:()I
ifle 14
11: aload 0
aload 2
invokestatic sun.net.spi.nameservice.dns.DNSNameService.createProviderURL:(Ljava/lang/String;)Ljava/lang/String;
putfield sun.net.spi.nameservice.dns.DNSNameService.nameProviderUrl:Ljava/lang/String;
12: aload 0
getfield sun.net.spi.nameservice.dns.DNSNameService.nameProviderUrl:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifne 27
13: new java.lang.RuntimeException
dup
ldc "malformed nameservers property"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals: java.lang.String
StackMap stack:
invokestatic sun.net.dns.ResolverConfiguration.open:()Lsun/net/dns/ResolverConfiguration;
invokevirtual sun.net.dns.ResolverConfiguration.nameservers:()Ljava/util/List;
astore 3
start local 3 15: aload 3
invokeinterface java.util.List.isEmpty:()Z
ifeq 17
16: new java.lang.RuntimeException
dup
ldc "no nameservers provided"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals: java.util.List
StackMap stack:
iconst_0
istore 4
start local 4 18: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 24
StackMap locals: sun.net.spi.nameservice.dns.DNSNameService java.lang.String java.lang.String java.util.List int top java.util.Iterator
StackMap stack:
19: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 20: aload 5
invokestatic sun.net.util.IPAddressUtil.isIPv4LiteralAddress:(Ljava/lang/String;)Z
ifne 22
21: aload 5
invokestatic sun.net.util.IPAddressUtil.isIPv6LiteralAddress:(Ljava/lang/String;)Z
ifeq 24
22: StackMap locals: sun.net.spi.nameservice.dns.DNSNameService java.lang.String java.lang.String java.util.List int java.lang.String java.util.Iterator
StackMap stack:
iconst_1
istore 4
23: goto 25
end local 5 24: StackMap locals: sun.net.spi.nameservice.dns.DNSNameService java.lang.String java.lang.String java.util.List int top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
25: StackMap locals: sun.net.spi.nameservice.dns.DNSNameService java.lang.String java.lang.String java.util.List int
StackMap stack:
iload 4
ifne 27
26: new java.lang.RuntimeException
dup
ldc "bad nameserver configuration"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 27: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/net/spi/nameservice/dns/DNSNameService;
5 28 1 domain Ljava/lang/String;
10 28 2 nameservers Ljava/lang/String;
15 27 3 nsList Ljava/util/List<Ljava/lang/String;>;
18 27 4 found Z
20 24 5 addr Ljava/lang/String;
Exceptions:
throws java.lang.Exception
public java.net.InetAddress[] lookupAllHostAddr(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/net/InetAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=12, args_size=2
start local 0 start local 1 0: iconst_3
anewarray java.lang.String
dup
iconst_0
ldc "A"
aastore
dup
iconst_1
ldc "AAAA"
aastore
dup
iconst_2
ldc "CNAME"
aastore
astore 2
start local 2 1: aload 0
invokevirtual sun.net.spi.nameservice.dns.DNSNameService.getTemporaryContext:()Ljavax/naming/directory/DirContext;
astore 3
start local 3 2: goto 5
end local 3 StackMap locals: sun.net.spi.nameservice.dns.DNSNameService java.lang.String java.lang.String[]
StackMap stack: javax.naming.NamingException
3: astore 4
start local 4 4: new java.lang.Error
dup
aload 4
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 start local 3 5: StackMap locals: javax.naming.directory.DirContext
StackMap stack:
aconst_null
astore 4
start local 4 6: aconst_null
astore 5
start local 5 7: aload 1
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
iflt 12
8: aload 0
aload 3
aload 1
aload 2
iconst_0
invokevirtual sun.net.spi.nameservice.dns.DNSNameService.resolve:(Ljavax/naming/directory/DirContext;Ljava/lang/String;[Ljava/lang/String;I)Ljava/util/ArrayList;
astore 4
9: goto 12
StackMap locals: sun.net.spi.nameservice.dns.DNSNameService java.lang.String java.lang.String[] javax.naming.directory.DirContext java.util.ArrayList java.net.UnknownHostException
StackMap stack: java.net.UnknownHostException
10: astore 6
start local 6 11: aload 6
astore 5
end local 6 12: StackMap locals:
StackMap stack:
aload 4
ifnonnull 39
13: aconst_null
astore 6
start local 6 14: iconst_0
istore 8
start local 8 15: aload 0
getfield sun.net.spi.nameservice.dns.DNSNameService.domainList:Ljava/util/LinkedList;
ifnull 18
16: aload 0
getfield sun.net.spi.nameservice.dns.DNSNameService.domainList:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.iterator:()Ljava/util/Iterator;
astore 7
start local 7 17: goto 38
end local 7 18: StackMap locals: sun.net.spi.nameservice.dns.DNSNameService java.lang.String java.lang.String[] javax.naming.directory.DirContext java.util.ArrayList java.net.UnknownHostException java.util.List top int
StackMap stack:
invokestatic sun.net.dns.ResolverConfiguration.open:()Lsun/net/dns/ResolverConfiguration;
invokevirtual sun.net.dns.ResolverConfiguration.searchlist:()Ljava/util/List;
astore 6
19: aload 6
invokeinterface java.util.List.size:()I
iconst_1
if_icmple 21
20: iconst_1
istore 8
21: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
start local 7 22: goto 38
23: StackMap locals: sun.net.spi.nameservice.dns.DNSNameService java.lang.String java.lang.String[] javax.naming.directory.DirContext java.util.ArrayList java.net.UnknownHostException java.util.List java.util.Iterator int
StackMap stack:
aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 24: iconst_0
istore 10
start local 10 25: goto 33
26: StackMap locals: java.lang.String int
StackMap stack:
aload 0
aload 3
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
iconst_0
invokevirtual sun.net.spi.nameservice.dns.DNSNameService.resolve:(Ljavax/naming/directory/DirContext;Ljava/lang/String;[Ljava/lang/String;I)Ljava/util/ArrayList;
astore 4
27: goto 36
28: StackMap locals:
StackMap stack: java.net.UnknownHostException
astore 11
start local 11 29: aload 11
astore 5
30: iload 8
ifeq 32
31: goto 36
32: StackMap locals: java.net.UnknownHostException
StackMap stack:
aload 9
iload 10
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 9
end local 11 33: StackMap locals:
StackMap stack:
aload 9
ldc "."
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
dup
istore 10
iconst_m1
if_icmpeq 36
34: iload 10
aload 9
invokevirtual java.lang.String.length:()I
iconst_1
isub
35: if_icmplt 26
36: StackMap locals:
StackMap stack:
aload 4
ifnull 38
37: goto 39
end local 10 end local 9 38: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 23
end local 8 end local 7 end local 6 39: StackMap locals:
StackMap stack:
aload 4
ifnonnull 41
aload 1
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
ifge 41
40: aload 0
aload 3
aload 1
aload 2
iconst_0
invokevirtual sun.net.spi.nameservice.dns.DNSNameService.resolve:(Ljavax/naming/directory/DirContext;Ljava/lang/String;[Ljava/lang/String;I)Ljava/util/ArrayList;
astore 4
41: StackMap locals:
StackMap stack:
aload 4
ifnonnull 44
42: getstatic sun.net.spi.nameservice.dns.DNSNameService.$assertionsDisabled:Z
ifne 43
aload 5
ifnonnull 43
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
43: StackMap locals:
StackMap stack:
aload 5
athrow
44: StackMap locals:
StackMap stack:
getstatic sun.net.spi.nameservice.dns.DNSNameService.$assertionsDisabled:Z
ifne 45
aload 4
invokevirtual java.util.ArrayList.size:()I
ifgt 45
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
45: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.util.ArrayList.size:()I
anewarray java.net.InetAddress
astore 6
start local 6 46: iconst_0
istore 7
start local 7 47: iconst_0
istore 8
start local 8 48: goto 56
49: StackMap locals: java.net.InetAddress[] int int
StackMap stack:
aload 4
iload 8
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 9
start local 9 50: aload 9
invokestatic sun.net.util.IPAddressUtil.textToNumericFormatV4:(Ljava/lang/String;)[B
astore 10
start local 10 51: aload 10
ifnonnull 53
52: aload 9
invokestatic sun.net.util.IPAddressUtil.textToNumericFormatV6:(Ljava/lang/String;)[B
astore 10
53: StackMap locals: java.lang.String byte[]
StackMap stack:
aload 10
ifnull 55
54: aload 6
iload 7
iinc 7 1
aload 1
aload 10
invokestatic java.net.InetAddress.getByAddress:(Ljava/lang/String;[B)Ljava/net/InetAddress;
aastore
end local 10 end local 9 55: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
56: iload 8
aload 4
invokevirtual java.util.ArrayList.size:()I
if_icmplt 49
end local 8 57: iload 7
ifne 59
58: new java.net.UnknownHostException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": no valid DNS records"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.UnknownHostException.<init>:(Ljava/lang/String;)V
athrow
59: StackMap locals:
StackMap stack:
iload 7
aload 4
invokevirtual java.util.ArrayList.size:()I
if_icmpge 67
60: iload 7
anewarray java.net.InetAddress
astore 8
start local 8 61: iconst_0
istore 9
start local 9 62: goto 65
63: StackMap locals: java.net.InetAddress[] int
StackMap stack:
aload 8
iload 9
aload 6
iload 9
aaload
aastore
64: iinc 9 1
StackMap locals:
StackMap stack:
65: iload 9
iload 7
if_icmplt 63
end local 9 66: aload 8
astore 6
end local 8 67: StackMap locals:
StackMap stack:
aload 6
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 68 0 this Lsun/net/spi/nameservice/dns/DNSNameService;
0 68 1 host Ljava/lang/String;
1 68 2 ids [Ljava/lang/String;
2 3 3 ctx Ljavax/naming/directory/DirContext;
5 68 3 ctx Ljavax/naming/directory/DirContext;
4 5 4 nx Ljavax/naming/NamingException;
6 68 4 results Ljava/util/ArrayList<Ljava/lang/String;>;
7 68 5 uhe Ljava/net/UnknownHostException;
11 12 6 x Ljava/net/UnknownHostException;
14 39 6 searchList Ljava/util/List<Ljava/lang/String;>;
17 18 7 i Ljava/util/Iterator<Ljava/lang/String;>;
22 39 7 i Ljava/util/Iterator<Ljava/lang/String;>;
15 39 8 usingSearchList Z
24 38 9 parentDomain Ljava/lang/String;
25 38 10 start I
29 33 11 x Ljava/net/UnknownHostException;
46 68 6 addrs [Ljava/net/InetAddress;
47 68 7 count I
48 57 8 i I
50 55 9 addrString Ljava/lang/String;
51 55 10 addr [B
61 67 8 tmp [Ljava/net/InetAddress;
62 66 9 i I
Exception table:
from to target type
1 2 3 Class javax.naming.NamingException
8 9 10 Class java.net.UnknownHostException
26 27 28 Class java.net.UnknownHostException
Exceptions:
throws java.net.UnknownHostException
MethodParameters:
Name Flags
host
public java.lang.String getHostByAddr(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: ldc ""
astore 3
start local 3 2: iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "PTR"
aastore
astore 4
start local 4 3: aconst_null
astore 6
start local 6 4: aload 0
invokevirtual sun.net.spi.nameservice.dns.DNSNameService.getTemporaryContext:()Ljavax/naming/directory/DirContext;
astore 5
start local 5 5: goto 8
end local 5 StackMap locals: sun.net.spi.nameservice.dns.DNSNameService byte[] java.lang.String java.lang.String java.lang.String[] top java.util.ArrayList
StackMap stack: javax.naming.NamingException
6: astore 7
start local 7 7: new java.lang.Error
dup
aload 7
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 7 start local 5 8: StackMap locals: sun.net.spi.nameservice.dns.DNSNameService byte[] java.lang.String java.lang.String java.lang.String[] javax.naming.directory.DirContext java.util.ArrayList
StackMap stack:
aload 1
arraylength
iconst_4
if_icmpne 18
9: aload 1
arraylength
iconst_1
isub
istore 7
start local 7 10: goto 13
11: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
iload 7
baload
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
12: iinc 7 -1
StackMap locals:
StackMap stack:
13: iload 7
ifge 11
end local 7 14: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "IN-ADDR.ARPA."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
15: aload 0
aload 5
aload 3
aload 4
iconst_0
invokevirtual sun.net.spi.nameservice.dns.DNSNameService.resolve:(Ljavax/naming/directory/DirContext;Ljava/lang/String;[Ljava/lang/String;I)Ljava/util/ArrayList;
astore 6
16: aload 6
iconst_0
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 2
17: goto 39
StackMap locals:
StackMap stack:
18: aload 1
arraylength
bipush 16
if_icmpne 39
19: aload 1
arraylength
iconst_1
isub
istore 7
start local 7 20: goto 25
21: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
iload 7
baload
bipush 15
iand
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
22: aload 1
iload 7
baload
sipush 240
iand
iconst_4
ishr
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
23: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
24: iinc 7 -1
StackMap locals:
StackMap stack:
25: iload 7
ifge 21
end local 7 26: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "IP6.ARPA."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
start local 7 27: aload 0
aload 5
aload 7
aload 4
iconst_0
invokevirtual sun.net.spi.nameservice.dns.DNSNameService.resolve:(Ljavax/naming/directory/DirContext;Ljava/lang/String;[Ljava/lang/String;I)Ljava/util/ArrayList;
astore 6
28: aload 6
iconst_0
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 2
29: goto 32
StackMap locals: sun.net.spi.nameservice.dns.DNSNameService byte[] java.lang.String java.lang.String java.lang.String[] javax.naming.directory.DirContext java.util.ArrayList java.lang.String
StackMap stack: java.net.UnknownHostException
30: pop
31: aconst_null
astore 2
32: StackMap locals:
StackMap stack:
aload 2
ifnonnull 39
33: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "IP6.INT."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
34: aload 0
aload 5
aload 7
aload 4
iconst_0
invokevirtual sun.net.spi.nameservice.dns.DNSNameService.resolve:(Ljavax/naming/directory/DirContext;Ljava/lang/String;[Ljava/lang/String;I)Ljava/util/ArrayList;
astore 6
35: aload 6
iconst_0
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 2
end local 7 end local 6 end local 5 end local 4 end local 3 36: goto 39
StackMap locals: sun.net.spi.nameservice.dns.DNSNameService byte[] java.lang.String
StackMap stack: java.lang.Exception
37: astore 3
start local 3 38: new java.net.UnknownHostException
dup
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokespecial java.net.UnknownHostException.<init>:(Ljava/lang/String;)V
athrow
end local 3 39: StackMap locals:
StackMap stack:
aload 2
ifnonnull 41
40: new java.net.UnknownHostException
dup
invokespecial java.net.UnknownHostException.<init>:()V
athrow
41: StackMap locals:
StackMap stack:
aload 2
ldc "."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 43
42: aload 2
iconst_0
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 2
43: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 44 0 this Lsun/net/spi/nameservice/dns/DNSNameService;
0 44 1 addr [B
1 44 2 host Ljava/lang/String;
2 36 3 literalip Ljava/lang/String;
3 36 4 ids [Ljava/lang/String;
5 6 5 ctx Ljavax/naming/directory/DirContext;
8 36 5 ctx Ljavax/naming/directory/DirContext;
4 36 6 results Ljava/util/ArrayList<Ljava/lang/String;>;
7 8 7 nx Ljavax/naming/NamingException;
10 14 7 i I
20 26 7 i I
27 36 7 ip6lit Ljava/lang/String;
38 39 3 e Ljava/lang/Exception;
Exception table:
from to target type
4 5 6 Class javax.naming.NamingException
27 29 30 Class java.net.UnknownHostException
1 36 37 Class java.lang.Exception
Exceptions:
throws java.net.UnknownHostException
MethodParameters:
Name Flags
addr
private static void appendIfLiteralAddress(java.lang.String, java.lang.StringBuffer);
descriptor: (Ljava/lang/String;Ljava/lang/StringBuffer;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.net.util.IPAddressUtil.isIPv4LiteralAddress:(Ljava/lang/String;)Z
ifeq 3
1: aload 1
new java.lang.StringBuilder
dup
ldc "dns://"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
2: goto 5
3: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.net.util.IPAddressUtil.isIPv6LiteralAddress:(Ljava/lang/String;)Z
ifeq 5
4: aload 1
new java.lang.StringBuilder
dup
ldc "dns://["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 addr Ljava/lang/String;
0 6 1 sb Ljava/lang/StringBuffer;
MethodParameters:
Name Flags
addr
sb
private static java.lang.String createProviderURL(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 1
start local 1 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: java.util.List java.lang.StringBuffer top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: aload 2
aload 1
invokestatic sun.net.spi.nameservice.dns.DNSNameService.appendIfLiteralAddress:(Ljava/lang/String;Ljava/lang/StringBuffer;)V
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 nsList Ljava/util/List<Ljava/lang/String;>;
1 6 1 sb Ljava/lang/StringBuffer;
3 4 2 s Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;)Ljava/lang/String;
MethodParameters:
Name Flags
nsList
private static java.lang.String createProviderURL(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 1
start local 1 1: new java.util.StringTokenizer
dup
aload 0
ldc ","
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 2
start local 2 2: goto 4
3: StackMap locals: java.lang.StringBuffer java.util.StringTokenizer
StackMap stack:
aload 2
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
aload 1
invokestatic sun.net.spi.nameservice.dns.DNSNameService.appendIfLiteralAddress:(Ljava/lang/String;Ljava/lang/StringBuffer;)V
4: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 3
5: aload 1
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 str Ljava/lang/String;
1 6 1 sb Ljava/lang/StringBuffer;
2 6 2 st Ljava/util/StringTokenizer;
MethodParameters:
Name Flags
str
}
SourceFile: "DNSNameService.java"
NestMembers:
sun.net.spi.nameservice.dns.DNSNameService$1 sun.net.spi.nameservice.dns.DNSNameService$2 sun.net.spi.nameservice.dns.DNSNameService$ThreadContext
InnerClasses:
sun.net.spi.nameservice.dns.DNSNameService$1
sun.net.spi.nameservice.dns.DNSNameService$2
private ThreadContext = sun.net.spi.nameservice.dns.DNSNameService$ThreadContext of sun.net.spi.nameservice.dns.DNSNameService