0
La méthode rebasage ((type) -> {}) est définie pour le type AgentBuilder.DefaultMéthode non définie pour le type AgentBuilder.Default ByteBuddy
public static void premain(String arg, Instrumentation inst){
new AgentBuilder.Default()
.rebase(type -> type.getSimpleName().equals("Calculator"))
.transform((builder, typeDescription) -> builder
.method(method -> method.getDeclaredAnnotations()
.isAnnotationPresent(Log.class))
.intercept(MethodDelegation.to(LogAspect.class)))
.installOn(inst);
}