public final class jdk.incubator.http.internal.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.incubator.http.internal.common.MinimalFuture
super_class: java.util.concurrent.CompletableFuture
{
static final java.util.concurrent.atomic.AtomicLong TOKENS;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0018) ACC_STATIC, ACC_FINAL
final long id;
descriptor: J
flags: (0x0010) 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.incubator.http.internal.common.MinimalFuture.TOKENS:Ljava/util/concurrent/atomic/AtomicLong;
return
LocalVariableTable:
Start End Slot Name Signature
public static <U> jdk.incubator.http.internal.common.MinimalFuture<U> completedFuture(U);
descriptor: (Ljava/lang/Object;)Ljdk/incubator/http/internal/common/MinimalFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new jdk.incubator.http.internal.common.MinimalFuture
dup
invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual jdk.incubator.http.internal.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/incubator/http/internal/common/MinimalFuture<TU;>;
Signature: <U:Ljava/lang/Object;>(TU;)Ljdk/incubator/http/internal/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.incubator.http.internal.common.MinimalFuture
dup
invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
astore 1
start local 1 2: aload 1
aload 0
invokevirtual jdk.incubator.http.internal.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/incubator/http/internal/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.incubator.http.internal.common.MinimalFuture$ExceptionalSupplier<U>);
descriptor: (Ljdk/incubator/http/internal/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.incubator.http.internal.common.MinimalFuture
dup
invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
astore 1
start local 1 1: aload 0
invokeinterface jdk.incubator.http.internal.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.incubator.http.internal.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/incubator/http/internal/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/incubator/http/internal/common/MinimalFuture$ExceptionalSupplier<TU;>;)Ljava/util/concurrent/CompletableFuture<TU;>;
MethodParameters:
Name Flags
supplier
public static <U> java.util.concurrent.CompletableFuture<U> supply(jdk.incubator.http.internal.common.MinimalFuture$ExceptionalSupplier<U>, java.util.concurrent.Executor);
descriptor: (Ljdk/incubator/http/internal/common/MinimalFuture$ExceptionalSupplier;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new jdk.incubator.http.internal.common.MinimalFuture
dup
invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
astore 2
start local 2 1: aload 2
aload 0
invokedynamic get(Ljdk/incubator/http/internal/common/MinimalFuture$ExceptionalSupplier;)Ljava/util/function/Supplier;
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;
jdk/incubator/http/internal/common/MinimalFuture.lambda$0(Ljdk/incubator/http/internal/common/MinimalFuture$ExceptionalSupplier;)Ljava/lang/Object; (6)
()Ljava/lang/Object;
2: aload 1
3: invokevirtual java.util.concurrent.CompletableFuture.completeAsync:(Ljava/util/function/Supplier;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
pop
4: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 supplier Ljdk/incubator/http/internal/common/MinimalFuture$ExceptionalSupplier<TU;>;
0 5 1 executor Ljava/util/concurrent/Executor;
1 5 2 cf Ljava/util/concurrent/CompletableFuture<TU;>;
Signature: <U:Ljava/lang/Object;>(Ljdk/incubator/http/internal/common/MinimalFuture$ExceptionalSupplier<TU;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture<TU;>;
MethodParameters:
Name Flags
supplier
executor
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.incubator.http.internal.common.MinimalFuture.TOKENS:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
putfield jdk.incubator.http.internal.common.MinimalFuture.id:J
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/internal/common/MinimalFuture<TT;>;
public static <T> jdk.incubator.http.internal.common.MinimalFuture<T> copy(java.util.concurrent.CompletionStage<T>, java.util.concurrent.Executor);
descriptor: (Ljava/util/concurrent/CompletionStage;Ljava/util/concurrent/Executor;)Ljdk/incubator/http/internal/common/MinimalFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: new jdk.incubator.http.internal.common.MinimalFuture
dup
invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
astore 2
start local 2 1: aload 2
invokedynamic accept(Ljdk/incubator/http/internal/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/incubator/http/internal/common/MinimalFuture.lambda$1(Ljdk/incubator/http/internal/common/MinimalFuture;Ljava/lang/Object;Ljava/lang/Throwable;)V (6)
(Ljava/lang/Object;Ljava/lang/Throwable;)V
2: astore 3
start local 3 3: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljava/util/concurrent/CompletableFuture;
if_acmpne 6
4: aload 0
aload 3
aload 1
invokeinterface java.util.concurrent.CompletionStage.whenCompleteAsync:(Ljava/util/function/BiConsumer;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletionStage;
pop
5: aload 2
areturn
6: StackMap locals: jdk.incubator.http.internal.common.MinimalFuture java.util.function.BiConsumer
StackMap stack:
aload 0
aload 3
invokeinterface java.util.concurrent.CompletionStage.whenComplete:(Ljava/util/function/BiConsumer;)Ljava/util/concurrent/CompletionStage;
pop
7: aload 2
invokestatic java.util.function.Function.identity:()Ljava/util/function/Function;
aload 1
invokevirtual jdk.incubator.http.internal.common.MinimalFuture.thenApplyAsync:(Ljava/util/function/Function;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
8: checkcast jdk.incubator.http.internal.common.MinimalFuture
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 src Ljava/util/concurrent/CompletionStage<TT;>;
0 9 1 executor Ljava/util/concurrent/Executor;
1 9 2 copy Ljdk/incubator/http/internal/common/MinimalFuture<TT;>;
3 9 3 relay Ljava/util/function/BiConsumer<TT;Ljava/lang/Throwable;>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/concurrent/CompletionStage<TT;>;Ljava/util/concurrent/Executor;)Ljdk/incubator/http/internal/common/MinimalFuture<TT;>;
MethodParameters:
Name Flags
src
executor
public <U> jdk.incubator.http.internal.common.MinimalFuture<U> newIncompleteFuture();
descriptor: ()Ljdk/incubator/http/internal/common/MinimalFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new jdk.incubator.http.internal.common.MinimalFuture
dup
invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/internal/common/MinimalFuture<TT;>;
Signature: <U:Ljava/lang/Object;>()Ljdk/incubator/http/internal/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/incubator/http/internal/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/incubator/http/internal/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.incubator.http.internal.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/incubator/http/internal/common/MinimalFuture<TT;>;
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.incubator.http.internal.common.MinimalFuture.newIncompleteFuture:()Ljdk/incubator/http/internal/common/MinimalFuture;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.Object lambda$0(jdk.incubator.http.internal.common.MinimalFuture$ExceptionalSupplier);
descriptor: (Ljdk/incubator/http/internal/common/MinimalFuture$ExceptionalSupplier;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=1
0: aload 0
invokeinterface jdk.incubator.http.internal.common.MinimalFuture$ExceptionalSupplier.get:()Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 3: new java.util.concurrent.CompletionException
dup
aload 1
invokespecial java.util.concurrent.CompletionException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 LocalVariableTable:
Start End Slot Name Signature
3 4 1 ex Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
private static void lambda$1(jdk.incubator.http.internal.common.MinimalFuture, java.lang.Object, java.lang.Throwable);
descriptor: (Ljdk/incubator/http/internal/common/MinimalFuture;Ljava/lang/Object;Ljava/lang/Throwable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 1 start local 2 0: aload 2
ifnull 3
1: aload 0
aload 2
invokevirtual jdk.incubator.http.internal.common.MinimalFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.incubator.http.internal.common.MinimalFuture.complete:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 5 1 result TT;
0 5 2 error Ljava/lang/Throwable;
}
Signature: <T:Ljava/lang/Object;>Ljava/util/concurrent/CompletableFuture<TT;>;
SourceFile: "MinimalFuture.java"
NestMembers:
jdk.incubator.http.internal.common.MinimalFuture$ExceptionalSupplier
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract ExceptionalSupplier = jdk.incubator.http.internal.common.MinimalFuture$ExceptionalSupplier of jdk.incubator.http.internal.common.MinimalFuture