public final class com.sun.jndi.ldap.LdapCtxFactory implements javax.naming.spi.ObjectFactory, javax.naming.spi.InitialContextFactory
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.jndi.ldap.LdapCtxFactory
super_class: java.lang.Object
{
public static final java.lang.String ADDRESS_TYPE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "URL"
private static com.sun.jndi.ldap.LdapDnsProviderServiceInternal ldapDNSService;
descriptor: Lcom/sun/jndi/ldap/LdapDnsProviderServiceInternal;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: aconst_null
putstatic com.sun.jndi.ldap.LdapCtxFactory.ldapDNSService:Lcom/sun/jndi/ldap/LdapDnsProviderServiceInternal;
1: ldc "com.sun.jndi.ldap.dns.LdapDnsProviderService"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 0
start local 0 2: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
aload 0
invokevirtual jdk.internal.misc.Unsafe.ensureClassInitialized:(Ljava/lang/Class;)V
end local 0 3: goto 5
StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
4: pop
5: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
2 3 0 c Ljava/lang/Class<*>;
Exception table:
from to target type
1 3 4 Class java.lang.ClassNotFoundException
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 Lcom/sun/jndi/ldap/LdapCtxFactory;
public static void registerLdapDnsProviderService(com.sun.jndi.ldap.LdapDnsProviderServiceInternal);
descriptor: (Lcom/sun/jndi/ldap/LdapDnsProviderServiceInternal;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
putstatic com.sun.jndi.ldap.LdapCtxFactory.ldapDNSService:Lcom/sun/jndi/ldap/LdapDnsProviderServiceInternal;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 theService Lcom/sun/jndi/ldap/LdapDnsProviderServiceInternal;
MethodParameters:
Name Flags
theService
public getObjectInstance(, javax.naming.Name, javax.naming.Context, java.util.Hashtable<?, ?>);
descriptor: (Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokestatic com.sun.jndi.ldap.LdapCtxFactory.isLdapRef:(Ljava/lang/Object;)Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new com.sun.jndi.url.ldap.ldapURLContextFactory
dup
invokespecial com.sun.jndi.url.ldap.ldapURLContextFactory.<init>:()V
astore 5
start local 5 3: aload 1
checkcast javax.naming.Reference
invokestatic com.sun.jndi.ldap.LdapCtxFactory.getURLs:(Ljavax/naming/Reference;)[Ljava/lang/String;
astore 6
start local 6 4: aload 5
aload 6
aload 2
aload 3
aload 4
invokeinterface javax.naming.spi.ObjectFactory.getObjectInstance:(Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable;)Ljava/lang/Object;
areturn
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 5 0 this Lcom/sun/jndi/ldap/LdapCtxFactory;
0 5 1 ref Ljava/lang/Object;
0 5 2 name Ljavax/naming/Name;
0 5 3 nameCtx Ljavax/naming/Context;
0 5 4 env Ljava/util/Hashtable<**>;
3 5 5 factory Ljavax/naming/spi/ObjectFactory;
4 5 6 urls [Ljava/lang/String;
Exceptions:
throws java.lang.Exception
Signature: (Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable<**>;)Ljava/lang/Object;
MethodParameters:
Name Flags
ref
name
nameCtx
env
public javax.naming.Context getInitialContext(java.util.Hashtable<?, ?>);
descriptor: (Ljava/util/Hashtable;)Ljavax/naming/Context;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
1: aload 1
ldc "java.naming.provider.url"
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
goto 3
StackMap locals:
StackMap stack:
2: aconst_null
3: StackMap locals:
StackMap stack: java.lang.String
astore 2
start local 2 4: aload 2
ifnonnull 9
5: new com.sun.jndi.ldap.LdapCtx
dup
ldc ""
ldc "localhost"
6: sipush 389
aload 1
iconst_0
7: invokespecial com.sun.jndi.ldap.LdapCtx.<init>:(Ljava/lang/String;Ljava/lang/String;ILjava/util/Hashtable;Z)V
8: areturn
9: StackMap locals: java.lang.String
StackMap stack:
aload 2
invokestatic com.sun.jndi.ldap.LdapURL.fromList:(Ljava/lang/String;)[Ljava/lang/String;
astore 3
start local 3 10: aload 3
arraylength
ifne 12
11: new javax.naming.ConfigurationException
dup
ldc "java.naming.provider.url property does not contain a URL"
invokespecial javax.naming.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: java.lang.String[]
StackMap stack:
aload 3
aload 1
invokestatic com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance:(Ljava/lang/Object;Ljava/util/Hashtable;)Ljavax/naming/directory/DirContext;
13: areturn
end local 3 end local 2 14: StackMap locals: com.sun.jndi.ldap.LdapCtxFactory java.util.Hashtable
StackMap stack: com.sun.jndi.ldap.LdapReferralException
astore 2
start local 2 15: aload 1
ifnull 18
16: ldc "throw"
aload 1
ldc "java.naming.referral"
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 18
17: aload 2
athrow
18: StackMap locals: com.sun.jndi.ldap.LdapReferralException
StackMap stack:
aload 1
ifnull 20
19: aload 1
ldc "java.naming.ldap.control.connect"
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.naming.ldap.Control[]
goto 21
StackMap locals:
StackMap stack:
20: aconst_null
21: StackMap locals:
StackMap stack: javax.naming.ldap.Control[]
astore 3
start local 3 22: aload 2
aload 1
aload 3
invokevirtual com.sun.jndi.ldap.LdapReferralException.getReferralContext:(Ljava/util/Hashtable;[Ljavax/naming/ldap/Control;)Ljavax/naming/Context;
checkcast com.sun.jndi.ldap.LdapCtx
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/jndi/ldap/LdapCtxFactory;
0 23 1 envprops Ljava/util/Hashtable<**>;
4 14 2 providerUrl Ljava/lang/String;
10 14 3 urls [Ljava/lang/String;
15 23 2 e Lcom/sun/jndi/ldap/LdapReferralException;
22 23 3 bindCtls [Ljavax/naming/ldap/Control;
Exception table:
from to target type
0 8 14 Class com.sun.jndi.ldap.LdapReferralException
9 13 14 Class com.sun.jndi.ldap.LdapReferralException
Exceptions:
throws javax.naming.NamingException
Signature: (Ljava/util/Hashtable<**>;)Ljavax/naming/Context;
MethodParameters:
Name Flags
envprops
private static boolean isLdapRef(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
instanceof javax.naming.Reference
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
ldc Lcom/sun/jndi/ldap/LdapCtxFactory;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 1
start local 1 3: aload 0
checkcast javax.naming.Reference
astore 2
start local 2 4: aload 1
aload 2
invokevirtual javax.naming.Reference.getFactoryClassName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 obj Ljava/lang/Object;
3 5 1 thisClassName Ljava/lang/String;
4 5 2 ref Ljavax/naming/Reference;
MethodParameters:
Name Flags
obj
private static java.lang.String[] getURLs(javax.naming.Reference);
descriptor: (Ljavax/naming/Reference;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual javax.naming.Reference.size:()I
anewarray java.lang.String
astore 2
start local 2 2: aload 0
invokevirtual javax.naming.Reference.getAll:()Ljava/util/Enumeration;
astore 3
start local 3 3: goto 8
4: StackMap locals: int java.lang.String[] java.util.Enumeration
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast javax.naming.RefAddr
astore 4
start local 4 5: aload 4
instanceof javax.naming.StringRefAddr
ifeq 8
6: aload 4
invokevirtual javax.naming.RefAddr.getType:()Ljava/lang/String;
ldc "URL"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: aload 2
iload 1
iinc 1 1
aload 4
invokevirtual javax.naming.RefAddr.getContent:()Ljava/lang/Object;
checkcast java.lang.String
aastore
end local 4 8: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 4
9: iload 1
ifne 13
10: new javax.naming.ConfigurationException
dup
11: ldc "Reference contains no valid addresses"
12: invokespecial javax.naming.ConfigurationException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
iload 1
aload 0
invokevirtual javax.naming.Reference.size:()I
if_icmpne 15
14: aload 2
areturn
15: StackMap locals:
StackMap stack:
iload 1
anewarray java.lang.String
astore 4
start local 4 16: aload 2
iconst_0
aload 4
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
17: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 ref Ljavax/naming/Reference;
1 18 1 size I
2 18 2 urls [Ljava/lang/String;
3 18 3 addrs Ljava/util/Enumeration<Ljavax/naming/RefAddr;>;
5 8 4 addr Ljavax/naming/RefAddr;
16 18 4 urls2 [Ljava/lang/String;
Exceptions:
throws javax.naming.NamingException
MethodParameters:
Name Flags
ref
public static javax.naming.directory.DirContext getLdapCtxInstance(, java.util.Hashtable<?, ?>);
descriptor: (Ljava/lang/Object;Ljava/util/Hashtable;)Ljavax/naming/directory/DirContext;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
instanceof java.lang.String
ifeq 2
1: aload 0
checkcast java.lang.String
aload 1
invokestatic com.sun.jndi.ldap.LdapCtxFactory.getUsingURL:(Ljava/lang/String;Ljava/util/Hashtable;)Ljavax/naming/directory/DirContext;
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.lang.String[]
ifeq 4
3: aload 0
checkcast java.lang.String[]
aload 1
invokestatic com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs:([Ljava/lang/String;Ljava/util/Hashtable;)Ljavax/naming/directory/DirContext;
areturn
4: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
5: ldc "argument must be an LDAP URL String or array of them"
6: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 urlInfo Ljava/lang/Object;
0 7 1 env Ljava/util/Hashtable<**>;
Exceptions:
throws javax.naming.NamingException
Signature: (Ljava/lang/Object;Ljava/util/Hashtable<**>;)Ljavax/naming/directory/DirContext;
MethodParameters:
Name Flags
urlInfo
env
private static javax.naming.directory.DirContext getUsingURL(java.lang.String, java.util.Hashtable<?, ?>);
descriptor: (Ljava/lang/String;Ljava/util/Hashtable;)Ljavax/naming/directory/DirContext;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: getstatic com.sun.jndi.ldap.LdapCtxFactory.ldapDNSService:Lcom/sun/jndi/ldap/LdapDnsProviderServiceInternal;
ifnull 2
1: getstatic com.sun.jndi.ldap.LdapCtxFactory.ldapDNSService:Lcom/sun/jndi/ldap/LdapDnsProviderServiceInternal;
aload 0
aload 1
invokeinterface com.sun.jndi.ldap.LdapDnsProviderServiceInternal.lookupEndpointsInternal:(Ljava/lang/String;Ljava/util/Hashtable;)Lcom/sun/jndi/ldap/LdapDnsProviderResultInternal;
goto 3
StackMap locals:
StackMap stack:
2: aconst_null
3: StackMap locals:
StackMap stack: com.sun.jndi.ldap.LdapDnsProviderResultInternal
astore 2
start local 2 4: aload 2
ifnonnull 8
5: new com.sun.jndi.ldap.DefaultLdapDnsProvider
dup
invokespecial com.sun.jndi.ldap.DefaultLdapDnsProvider.<init>:()V
aload 0
aload 1
invokevirtual com.sun.jndi.ldap.DefaultLdapDnsProvider.lookupEndpoints:(Ljava/lang/String;Ljava/util/Map;)Ljava/util/Optional;
6: new com.sun.jndi.ldap.LdapDnsProviderResultInternal
dup
ldc ""
invokestatic java.util.List.of:()Ljava/util/List;
invokespecial com.sun.jndi.ldap.LdapDnsProviderResultInternal.<init>:(Ljava/lang/String;Ljava/util/List;)V
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.sun.jndi.ldap.LdapDnsProviderResultInternal
7: astore 2
8: StackMap locals: com.sun.jndi.ldap.LdapDnsProviderResultInternal
StackMap stack:
aconst_null
astore 4
start local 4 9: aload 2
invokevirtual com.sun.jndi.ldap.LdapDnsProviderResultInternal.getEndpoints:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 17
StackMap locals: java.lang.String java.util.Hashtable com.sun.jndi.ldap.LdapDnsProviderResultInternal top javax.naming.NamingException top java.util.Iterator
StackMap stack:
10: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 11: aload 2
invokevirtual com.sun.jndi.ldap.LdapDnsProviderResultInternal.getDomainName:()Ljava/lang/String;
aload 0
new com.sun.jndi.ldap.LdapURL
dup
aload 5
invokespecial com.sun.jndi.ldap.LdapURL.<init>:(Ljava/lang/String;)V
aload 1
12: invokestatic com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxFromUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/sun/jndi/ldap/LdapURL;Ljava/util/Hashtable;)Lcom/sun/jndi/ldap/LdapCtx;
astore 3
start local 3 13: aload 3
14: areturn
end local 3 15: StackMap locals: java.lang.String java.util.Hashtable com.sun.jndi.ldap.LdapDnsProviderResultInternal top javax.naming.NamingException java.lang.String java.util.Iterator
StackMap stack: javax.naming.NamingException
astore 7
start local 7 16: aload 7
astore 4
end local 7 end local 5 17: StackMap locals: java.lang.String java.util.Hashtable com.sun.jndi.ldap.LdapDnsProviderResultInternal top javax.naming.NamingException top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
18: aload 4
ifnull 20
19: aload 4
athrow
20: StackMap locals: java.lang.String java.util.Hashtable com.sun.jndi.ldap.LdapDnsProviderResultInternal top javax.naming.NamingException
StackMap stack:
new javax.naming.NamingException
dup
ldc "Could not resolve a valid ldap host"
invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 2 21: StackMap locals: java.lang.String java.util.Hashtable
StackMap stack: javax.naming.NamingException
astore 2
start local 2 22: aload 2
athrow
end local 2 23: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 24: new javax.naming.NamingException
dup
invokespecial javax.naming.NamingException.<init>:()V
astore 3
start local 3 25: aload 3
aload 2
invokevirtual javax.naming.NamingException.setRootCause:(Ljava/lang/Throwable;)V
26: aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 url Ljava/lang/String;
0 27 1 env Ljava/util/Hashtable<**>;
4 21 2 r Lcom/sun/jndi/ldap/LdapDnsProviderResultInternal;
13 15 3 ctx Lcom/sun/jndi/ldap/LdapCtx;
9 21 4 lastException Ljavax/naming/NamingException;
11 17 5 u Ljava/lang/String;
16 17 7 e Ljavax/naming/NamingException;
22 23 2 e Ljavax/naming/NamingException;
24 27 2 e Ljava/lang/Exception;
25 27 3 ex Ljavax/naming/NamingException;
Exception table:
from to target type
11 14 15 Class javax.naming.NamingException
0 14 21 Class javax.naming.NamingException
15 21 21 Class javax.naming.NamingException
0 14 23 Class java.lang.Exception
15 21 23 Class java.lang.Exception
Exceptions:
throws javax.naming.NamingException
Signature: (Ljava/lang/String;Ljava/util/Hashtable<**>;)Ljavax/naming/directory/DirContext;
MethodParameters:
Name Flags
url
env
private static com.sun.jndi.ldap.LdapCtx getLdapCtxFromUrl(java.lang.String, java.lang.String, com.sun.jndi.ldap.LdapURL, java.util.Hashtable<?, ?>);
descriptor: (Ljava/lang/String;Ljava/lang/String;Lcom/sun/jndi/ldap/LdapURL;Ljava/util/Hashtable;)Lcom/sun/jndi/ldap/LdapCtx;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual com.sun.jndi.ldap.LdapURL.getDN:()Ljava/lang/String;
astore 4
start local 4 1: aload 2
invokevirtual com.sun.jndi.ldap.LdapURL.getHost:()Ljava/lang/String;
astore 5
start local 5 2: aload 2
invokevirtual com.sun.jndi.ldap.LdapURL.getPort:()I
istore 6
start local 6 3: new com.sun.jndi.ldap.LdapCtx
dup
aload 4
aload 5
iload 6
aload 3
aload 2
invokevirtual com.sun.jndi.ldap.LdapURL.useSsl:()Z
invokespecial com.sun.jndi.ldap.LdapCtx.<init>:(Ljava/lang/String;Ljava/lang/String;ILjava/util/Hashtable;Z)V
astore 7
start local 7 4: aload 7
aload 0
invokevirtual com.sun.jndi.ldap.LdapCtx.setDomainName:(Ljava/lang/String;)V
5: aload 7
aload 1
invokevirtual com.sun.jndi.ldap.LdapCtx.setProviderUrl:(Ljava/lang/String;)V
6: aload 7
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 7 0 domain Ljava/lang/String;
0 7 1 url Ljava/lang/String;
0 7 2 u Lcom/sun/jndi/ldap/LdapURL;
0 7 3 env Ljava/util/Hashtable<**>;
1 7 4 dn Ljava/lang/String;
2 7 5 host Ljava/lang/String;
3 7 6 port I
4 7 7 ctx Lcom/sun/jndi/ldap/LdapCtx;
Exceptions:
throws javax.naming.NamingException
Signature: (Ljava/lang/String;Ljava/lang/String;Lcom/sun/jndi/ldap/LdapURL;Ljava/util/Hashtable<**>;)Lcom/sun/jndi/ldap/LdapCtx;
MethodParameters:
Name Flags
domain
url
u
env
private static javax.naming.directory.DirContext getUsingURLs(java.lang.String[], java.util.Hashtable<?, ?>);
descriptor: ([Ljava/lang/String;Ljava/util/Hashtable;)Ljavax/naming/directory/DirContext;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 8
StackMap locals: java.lang.String[] java.util.Hashtable javax.naming.NamingException top int int java.lang.String[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 3
aload 1
invokestatic com.sun.jndi.ldap.LdapCtxFactory.getUsingURL:(Ljava/lang/String;Ljava/util/Hashtable;)Ljavax/naming/directory/DirContext;
4: areturn
5: StackMap locals: java.lang.String[] java.util.Hashtable javax.naming.NamingException java.lang.String int int java.lang.String[]
StackMap stack: javax.naming.NamingException
astore 7
start local 7 6: aload 7
astore 2
end local 7 end local 3 7: iinc 4 1
StackMap locals: java.lang.String[] java.util.Hashtable javax.naming.NamingException top int int java.lang.String[]
StackMap stack:
8: iload 4
iload 5
if_icmplt 2
9: aload 2
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 urls [Ljava/lang/String;
0 10 1 env Ljava/util/Hashtable<**>;
1 10 2 ex Ljavax/naming/NamingException;
3 7 3 u Ljava/lang/String;
6 7 7 e Ljavax/naming/NamingException;
Exception table:
from to target type
3 4 5 Class javax.naming.NamingException
Exceptions:
throws javax.naming.NamingException
Signature: ([Ljava/lang/String;Ljava/util/Hashtable<**>;)Ljavax/naming/directory/DirContext;
MethodParameters:
Name Flags
urls
env
public static javax.naming.directory.Attribute createTypeNameAttr(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljavax/naming/directory/Attribute;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: new java.util.Vector
dup
bipush 10
invokespecial java.util.Vector.<init>:(I)V
astore 1
start local 1 1: aload 0
aload 1
invokestatic com.sun.jndi.ldap.LdapCtxFactory.getTypeNames:(Ljava/lang/Class;Ljava/util/Vector;)[Ljava/lang/String;
astore 2
start local 2 2: aload 2
arraylength
ifle 11
3: new javax.naming.directory.BasicAttribute
dup
getstatic com.sun.jndi.ldap.Obj.JAVA_ATTRIBUTES:[Ljava/lang/String;
bipush 6
aaload
invokespecial javax.naming.directory.BasicAttribute.<init>:(Ljava/lang/String;)V
4: astore 3
start local 3 5: iconst_0
istore 4
start local 4 6: goto 9
7: StackMap locals: java.lang.Class java.util.Vector java.lang.String[] javax.naming.directory.BasicAttribute int
StackMap stack:
aload 3
aload 2
iload 4
aaload
invokevirtual javax.naming.directory.BasicAttribute.add:(Ljava/lang/Object;)Z
pop
8: iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
aload 2
arraylength
if_icmplt 7
end local 4 10: aload 3
areturn
end local 3 11: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 cl Ljava/lang/Class<*>;
1 12 1 v Ljava/util/Vector<Ljava/lang/String;>;
2 12 2 types [Ljava/lang/String;
5 11 3 tAttr Ljavax/naming/directory/BasicAttribute;
6 10 4 i I
Signature: (Ljava/lang/Class<*>;)Ljavax/naming/directory/Attribute;
MethodParameters:
Name Flags
cl
private static java.lang.String[] getTypeNames(java.lang.Class<?>, java.util.Vector<java.lang.String>);
descriptor: (Ljava/lang/Class;Ljava/util/Vector;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic com.sun.jndi.ldap.LdapCtxFactory.getClassesAux:(Ljava/lang/Class;Ljava/util/Vector;)V
1: aload 0
invokevirtual java.lang.Class.getInterfaces:()[Ljava/lang/Class;
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 6
4: StackMap locals: java.lang.Class[] int
StackMap stack:
aload 2
iload 3
aaload
aload 1
invokestatic com.sun.jndi.ldap.LdapCtxFactory.getClassesAux:(Ljava/lang/Class;Ljava/util/Vector;)V
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 2
arraylength
if_icmplt 4
end local 3 7: aload 1
invokevirtual java.util.Vector.size:()I
anewarray java.lang.String
astore 3
start local 3 8: iconst_0
istore 4
start local 4 9: aload 1
invokevirtual java.util.Vector.iterator:()Ljava/util/Iterator;
astore 6
goto 12
StackMap locals: java.lang.Class java.util.Vector java.lang.Class[] java.lang.String[] int top java.util.Iterator
StackMap stack:
10: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 11: aload 3
iload 4
iinc 4 1
aload 5
aastore
end local 5 12: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
13: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 currentClass Ljava/lang/Class<*>;
0 14 1 v Ljava/util/Vector<Ljava/lang/String;>;
2 14 2 members [Ljava/lang/Class;
3 7 3 i I
8 14 3 ret [Ljava/lang/String;
9 14 4 i I
11 12 5 name Ljava/lang/String;
Signature: (Ljava/lang/Class<*>;Ljava/util/Vector<Ljava/lang/String;>;)[Ljava/lang/String;
MethodParameters:
Name Flags
currentClass
v
private static void getClassesAux(java.lang.Class<?>, java.util.Vector<java.lang.String>);
descriptor: (Ljava/lang/Class;Ljava/util/Vector;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.util.Vector.contains:(Ljava/lang/Object;)Z
ifne 2
1: aload 1
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 0
3: goto 6
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic com.sun.jndi.ldap.LdapCtxFactory.getTypeNames:(Ljava/lang/Class;Ljava/util/Vector;)[Ljava/lang/String;
pop
5: aload 0
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 0
6: StackMap locals:
StackMap stack:
aload 0
ifnonnull 4
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 currentClass Ljava/lang/Class<*>;
0 8 1 v Ljava/util/Vector<Ljava/lang/String;>;
Signature: (Ljava/lang/Class<*>;Ljava/util/Vector<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
currentClass
v
}
SourceFile: "LdapCtxFactory.java"