final class com.sun.jndi.ldap.LdapDnsProviderService
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.jndi.ldap.LdapDnsProviderService
super_class: java.lang.Object
{
private static volatile com.sun.jndi.ldap.LdapDnsProviderService service;
descriptor: Lcom/sun/jndi/ldap/LdapDnsProviderService;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static final java.lang.Object LOCK;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.ServiceLoader<javax.naming.ldap.spi.LdapDnsProvider> providers;
descriptor: Ljava/util/ServiceLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ServiceLoader<Ljavax/naming/ldap/spi/LdapDnsProvider;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
newarray 10
putstatic com.sun.jndi.ldap.LdapDnsProviderService.LOCK:Ljava/lang/Object;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=3, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 2: aload 1
ifnonnull 8
3: aload 0
4: ldc Ljavax/naming/ldap/spi/LdapDnsProvider;
5: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
6: invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
putfield com.sun.jndi.ldap.LdapDnsProviderService.providers:Ljava/util/ServiceLoader;
7: goto 16
8: StackMap locals: com.sun.jndi.ldap.LdapDnsProviderService java.lang.SecurityManager
StackMap stack:
invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
com/sun/jndi/ldap/LdapDnsProviderService.lambda$0()Ljava/util/ServiceLoader; (6)
()Ljava/util/ServiceLoader;
9: astore 2
start local 2 10: aload 0
11: aload 2
12: aconst_null
iconst_2
anewarray java.security.Permission
dup
iconst_0
13: new java.lang.RuntimePermission
dup
ldc "ldapDnsProvider"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
aastore
dup
iconst_1
14: getstatic sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION:Ljava/lang/RuntimePermission;
aastore
15: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;[Ljava/security/Permission;)Ljava/lang/Object;
checkcast java.util.ServiceLoader
putfield com.sun.jndi.ldap.LdapDnsProviderService.providers:Ljava/util/ServiceLoader;
end local 2 16: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/sun/jndi/ldap/LdapDnsProviderService;
2 17 1 sm Ljava/lang/SecurityManager;
10 16 2 pa Ljava/security/PrivilegedAction<Ljava/util/ServiceLoader<Ljavax/naming/ldap/spi/LdapDnsProvider;>;>;
static com.sun.jndi.ldap.LdapDnsProviderService getInstance();
descriptor: ()Lcom/sun/jndi/ldap/LdapDnsProviderService;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic com.sun.jndi.ldap.LdapDnsProviderService.service:Lcom/sun/jndi/ldap/LdapDnsProviderService;
ifnull 1
getstatic com.sun.jndi.ldap.LdapDnsProviderService.service:Lcom/sun/jndi/ldap/LdapDnsProviderService;
areturn
1: StackMap locals:
StackMap stack:
getstatic com.sun.jndi.ldap.LdapDnsProviderService.LOCK:Ljava/lang/Object;
dup
astore 0
monitorenter
2: getstatic com.sun.jndi.ldap.LdapDnsProviderService.service:Lcom/sun/jndi/ldap/LdapDnsProviderService;
ifnull 4
getstatic com.sun.jndi.ldap.LdapDnsProviderService.service:Lcom/sun/jndi/ldap/LdapDnsProviderService;
aload 0
monitorexit
3: areturn
4: StackMap locals: java.lang.Object
StackMap stack:
new com.sun.jndi.ldap.LdapDnsProviderService
dup
invokespecial com.sun.jndi.ldap.LdapDnsProviderService.<init>:()V
putstatic com.sun.jndi.ldap.LdapDnsProviderService.service:Lcom/sun/jndi/ldap/LdapDnsProviderService;
5: aload 0
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 0
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
getstatic com.sun.jndi.ldap.LdapDnsProviderService.service:Lcom/sun/jndi/ldap/LdapDnsProviderService;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 7 any
4 6 7 any
7 8 7 any
javax.naming.ldap.spi.LdapDnsProviderResult lookupEndpoints(java.lang.String, java.util.Hashtable<?, ?>);
descriptor: (Ljava/lang/String;Ljava/util/Hashtable;)Ljavax/naming/ldap/spi/LdapDnsProviderResult;
flags: (0x0000)
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: new java.util.Hashtable
dup
aload 2
invokespecial java.util.Hashtable.<init>:(Ljava/util/Map;)V
astore 4
start local 4 2: getstatic com.sun.jndi.ldap.LdapDnsProviderService.LOCK:Ljava/lang/Object;
dup
astore 5
monitorenter
3: aload 0
getfield com.sun.jndi.ldap.LdapDnsProviderService.providers:Ljava/util/ServiceLoader;
invokevirtual java.util.ServiceLoader.iterator:()Ljava/util/Iterator;
astore 6
start local 6 4: goto 9
5: StackMap locals: com.sun.jndi.ldap.LdapDnsProviderService java.lang.String java.util.Hashtable javax.naming.ldap.spi.LdapDnsProviderResult java.util.Hashtable java.lang.Object java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.naming.ldap.spi.LdapDnsProvider
aload 1
aload 4
invokevirtual javax.naming.ldap.spi.LdapDnsProvider.lookupEndpoints:(Ljava/lang/String;Ljava/util/Map;)Ljava/util/Optional;
6: invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
com/sun/jndi/ldap/LdapDnsProviderService.lambda$1(Ljavax/naming/ldap/spi/LdapDnsProviderResult;)Z (6)
(Ljavax/naming/ldap/spi/LdapDnsProviderResult;)Z
invokevirtual java.util.Optional.filter:(Ljava/util/function/Predicate;)Ljava/util/Optional;
7: aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.naming.ldap.spi.LdapDnsProviderResult
8: astore 3
9: StackMap locals:
StackMap stack:
aload 3
ifnonnull 10
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 6 10: StackMap locals:
StackMap stack:
aload 5
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 5
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
aload 3
ifnonnull 18
15: new com.sun.jndi.ldap.DefaultLdapDnsProvider
dup
invokespecial com.sun.jndi.ldap.DefaultLdapDnsProvider.<init>:()V
aload 1
aload 2
invokevirtual com.sun.jndi.ldap.DefaultLdapDnsProvider.lookupEndpoints:(Ljava/lang/String;Ljava/util/Map;)Ljava/util/Optional;
16: new javax.naming.ldap.spi.LdapDnsProviderResult
dup
ldc ""
invokestatic java.util.List.of:()Ljava/util/List;
invokespecial javax.naming.ldap.spi.LdapDnsProviderResult.<init>:(Ljava/lang/String;Ljava/util/List;)V
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.naming.ldap.spi.LdapDnsProviderResult
17: areturn
18: StackMap locals:
StackMap stack:
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 19 0 this Lcom/sun/jndi/ldap/LdapDnsProviderService;
0 19 1 url Ljava/lang/String;
0 19 2 env Ljava/util/Hashtable<**>;
1 19 3 result Ljavax/naming/ldap/spi/LdapDnsProviderResult;
2 19 4 envCopy Ljava/util/Hashtable<**>;
4 10 6 iterator Ljava/util/Iterator<Ljavax/naming/ldap/spi/LdapDnsProvider;>;
Exception table:
from to target type
3 11 12 any
12 13 12 any
Exceptions:
throws javax.naming.NamingException
Signature: (Ljava/lang/String;Ljava/util/Hashtable<**>;)Ljavax/naming/ldap/spi/LdapDnsProviderResult;
MethodParameters:
Name Flags
url
env
private static java.util.ServiceLoader lambda$0();
descriptor: ()Ljava/util/ServiceLoader;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=0, args_size=0
0: ldc Ljavax/naming/ldap/spi/LdapDnsProvider;
1: invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
2: invokestatic java.util.ServiceLoader.load:(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
3: areturn
LocalVariableTable:
Start End Slot Name Signature
private static boolean lambda$1(javax.naming.ldap.spi.LdapDnsProviderResult);
descriptor: (Ljavax/naming/ldap/spi/LdapDnsProviderResult;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.naming.ldap.spi.LdapDnsProviderResult.getEndpoints:()Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 r Ljavax/naming/ldap/spi/LdapDnsProviderResult;
}
SourceFile: "LdapDnsProviderService.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles