Skip to content

Commit

Permalink
fix issue #304, ScheduledThreadPoolExecutor transform bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lpw14 authored and johnsonlee committed Apr 25, 2022
1 parent 23a2cb3 commit 982566f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class ThreadTransformer : ClassTransformer {
// ..., queue, prefix => ..., queue, factory
insertBefore(init, MethodInsnNode(Opcodes.INVOKESTATIC, NAMED_THREAD_FACTORY, "newInstance", "(Ljava/lang/String;)Ljava/util/concurrent/ThreadFactory;", false))
}
this.desc = "(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V"
this.desc = "(ILjava/util/concurrent/ThreadFactory;)V"
}
// ScheduledThreadPoolExecutor(int, ThreadFactory)
"(ILjava/util/concurrent/ThreadFactory;)V" -> {
Expand All @@ -200,7 +200,7 @@ class ThreadTransformer : ClassTransformer {
// ..., handler, factory => ..., factory, handler
insertBefore(init, InsnNode(Opcodes.SWAP))
}
this.desc = "(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V"
this.desc = "(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V"
}
// ScheduledThreadPoolExecutor(int, ThreadFactory, RejectedExecutionHandler)
"(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V" -> {
Expand Down

0 comments on commit 982566f

Please sign in to comment.