Compilation failure Bad service configuration file, or exception thrown while constructing Processor object: Unable to get public no-arg constructor

  Kiến thức lập trình

Error using JCTree API on jdk21:

Compilation failure Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: org.example.async.log.client.annotation.AsyncLogAnnotationProcessor Unable to get public no-arg constructor

As you can see in the following code, when I use the JCTree API, it gives me above error.

tree.accept(new MethodVisitor(treeMaker, names));

MethodVisitor tries to modify some statements in the replacement code.

When I delete the above code it compiles successfully.

Attention! The error occurs in other projects that depend on this annotation handler. When projects that depend on this annotation handler compile they report the error

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT