public final class jdk.internal.net.http.common.MinimalFuture<T> extends java.util.concurrent.CompletableFuture<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.common.MinimalFuture
super_class: java.util.concurrent.CompletableFuture
{
private static final java.util.concurrent.atomic.AtomicLong TOKENS;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final long id;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putstatic jdk.internal.net.http.common.MinimalFuture.TOKENS:Ljava/util/concurrent/atomic/AtomicLong;
return
LocalVariableTable:
Start End Slot Name Signature
public static <U> jdk.internal.net.http.common.MinimalFuture<U> completedFuture(U);
descriptor: (Ljava/lang/Object;)Ljdk/internal/net/http/common/MinimalFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new jdk.internal.net.http.common.MinimalFuture
dup
invokespecial jdk.internal.net.http.common.MinimalFuture.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual jdk.internal.net.http.common.MinimalFuture.complete:(Ljava/lang/Object;)Z
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 value TU;
1 3 1 f Ljdk/internal/net/http/common/MinimalFuture<TU;>;
Signature: <U:Ljava/lang/Object;>(TU;)Ljdk/internal/net/http/common/MinimalFuture<TU;>;
MethodParameters:
Name Flags
value
public static <U> java.util.concurrent.CompletableFuture<U> failedFuture(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: new jdk.internal.net.http.common.MinimalFuture
dup
invokespecial jdk.internal.net.http.common.MinimalFuture.<init>:()V
astore 1
start local 1 2: aload 1
aload 0
invokevirtual jdk.internal.net.http.common.MinimalFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 ex Ljava/lang/Throwable;
2 4 1 f Ljdk/internal/net/http/common/MinimalFuture<TU;>;
Signature: <U:Ljava/lang/Object;>(Ljava/lang/Throwable;)Ljava/util/concurrent/CompletableFuture<TU;>;
MethodParameters:
Name Flags
ex
public static <U> java.util.concurrent.CompletableFuture<U> supply(jdk.internal.net.http.common.MinimalFuture$ExceptionalSupplier<U>);
descriptor: (Ljdk/internal/net/http/common/MinimalFuture$ExceptionalSupplier;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: new jdk.internal.net.http.common.MinimalFuture
dup
invokespecial jdk.internal.net.http.common.MinimalFuture.<init>:()V
astore 1
start local 1 1: aload 0
invokeinterface jdk.internal.net.http.common.MinimalFuture$ExceptionalSupplier.get:()Ljava/lang/Object;
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
end local 2 3: goto 6
StackMap locals: jdk.internal.net.http.common.MinimalFuture$ExceptionalSupplier java.util.concurrent.CompletableFuture
StackMap stack: java.lang.Throwable
4: astore 2
start local 2 5: aload 1
aload 2
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 2 6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 supplier Ljdk/internal/net/http/common/MinimalFuture$ExceptionalSupplier<TU;>;
1 7 1 cf Ljava/util/concurrent/CompletableFuture<TU;>;
2 3 2 value TU;
5 6 2 t Ljava/lang/Throwable;
Exception table:
from to target type
1 3 4 Class java.lang.Throwable
Signature: <U:Ljava/lang/Object;>(Ljdk/internal/net/http/common/MinimalFuture$ExceptionalSupplier<TU;>;)Ljava/util/concurrent/CompletableFuture<TU;>;
MethodParameters:
Name Flags
supplier
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.util.concurrent.CompletableFuture.<init>:()V
1: aload 0
getstatic jdk.internal.net.http.common.MinimalFuture.TOKENS:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
putfield jdk.internal.net.http.common.MinimalFuture.id:J
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/common/MinimalFuture<TT;>;
public <U> jdk.internal.net.http.common.MinimalFuture<U> newIncompleteFuture();
descriptor: ()Ljdk/internal/net/http/common/MinimalFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new jdk.internal.net.http.common.MinimalFuture
dup
invokespecial jdk.internal.net.http.common.MinimalFuture.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/common/MinimalFuture<TT;>;
Signature: <U:Ljava/lang/Object;>()Ljdk/internal/net/http/common/MinimalFuture<TU;>;
public void obtrudeValue();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/common/MinimalFuture<TT;>;
0 1 1 value TT;
Signature: (TT;)V
MethodParameters:
Name Flags
value
public void obtrudeException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/common/MinimalFuture<TT;>;
0 1 1 ex Ljava/lang/Throwable;
MethodParameters:
Name Flags
ex
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokespecial java.util.concurrent.CompletableFuture.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " (id="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.net.http.common.MinimalFuture.id:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/common/MinimalFuture<TT;>;
public static <U> jdk.internal.net.http.common.MinimalFuture<U> of(java.util.concurrent.CompletionStage<U>);
descriptor: (Ljava/util/concurrent/CompletionStage;)Ljdk/internal/net/http/common/MinimalFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new jdk.internal.net.http.common.MinimalFuture
dup
invokespecial jdk.internal.net.http.common.MinimalFuture.<init>:()V
astore 1
start local 1 1: aload 0
aload 1
invokedynamic accept(Ljdk/internal/net/http/common/MinimalFuture;)Ljava/util/function/BiConsumer;
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;Ljava/lang/Object;)V
jdk/internal/net/http/common/MinimalFuture.lambda$0(Ljdk/internal/net/http/common/MinimalFuture;Ljava/lang/Object;Ljava/lang/Throwable;)V (6)
(Ljava/lang/Object;Ljava/lang/Throwable;)V
invokeinterface java.util.concurrent.CompletionStage.whenComplete:(Ljava/util/function/BiConsumer;)Ljava/util/concurrent/CompletionStage;
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 stage Ljava/util/concurrent/CompletionStage<TU;>;
1 3 1 cf Ljdk/internal/net/http/common/MinimalFuture<TU;>;
Signature: <U:Ljava/lang/Object;>(Ljava/util/concurrent/CompletionStage<TU;>;)Ljdk/internal/net/http/common/MinimalFuture<TU;>;
MethodParameters:
Name Flags
stage
private static <U> void complete(java.util.concurrent.CompletableFuture<U>, U, java.lang.Throwable);
descriptor: (Ljava/util/concurrent/CompletableFuture;Ljava/lang/Object;Ljava/lang/Throwable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 3
1: aload 0
aload 1
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 cf Ljava/util/concurrent/CompletableFuture<TU;>;
0 5 1 result TU;
0 5 2 t Ljava/lang/Throwable;
Signature: <U:Ljava/lang/Object;>(Ljava/util/concurrent/CompletableFuture<TU;>;TU;Ljava/lang/Throwable;)V
MethodParameters:
Name Flags
cf
result
t
public java.util.concurrent.CompletableFuture newIncompleteFuture();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual jdk.internal.net.http.common.MinimalFuture.newIncompleteFuture:()Ljdk/internal/net/http/common/MinimalFuture;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static void lambda$0(jdk.internal.net.http.common.MinimalFuture, java.lang.Object, java.lang.Throwable);
descriptor: (Ljdk/internal/net/http/common/MinimalFuture;Ljava/lang/Object;Ljava/lang/Throwable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic jdk.internal.net.http.common.MinimalFuture.complete:(Ljava/util/concurrent/CompletableFuture;Ljava/lang/Object;Ljava/lang/Throwable;)V
return
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 r TU;
0 1 2 t Ljava/lang/Throwable;
}
Signature: <T:Ljava/lang/Object;>Ljava/util/concurrent/CompletableFuture<TT;>;
SourceFile: "MinimalFuture.java"
NestMembers:
jdk.internal.net.http.common.MinimalFuture$ExceptionalSupplier
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract ExceptionalSupplier = jdk.internal.net.http.common.MinimalFuture$ExceptionalSupplier of jdk.internal.net.http.common.MinimalFuture