import org.springframework.aop.support.ComposablePointcut;
ComposablePointcut pc = new ComposablePointcut(ClassFilter.TRUE, new GetterMethodMatcher());
pc.union(new SetterMethodMatcher());
when I try to create SetterMethodMatcher class from new SetterMethodMatcher(), IDEA will generate SetterMethodMatcher as below
public class SetterMethodMatcher implements ClassFilter, MethodMatcher {
}
but ComposablePointcut.union() has 2 variants, one accepts ClassFilter and the other accepts MethodMatcher. So IDEA should ask for the interface I want to implement to avoid "Ambiguous method call" problem.
Same problem if I generate SetterMethodMatcher as an inner class.
Description
I have this source code fragment
import org.springframework.aop.support.ComposablePointcut;
ComposablePointcut pc = new ComposablePointcut(ClassFilter.TRUE, new GetterMethodMatcher());
pc.union(new SetterMethodMatcher());
when I try to create SetterMethodMatcher class from new SetterMethodMatcher(), IDEA will generate SetterMethodMatcher as below
public class SetterMethodMatcher implements ClassFilter, MethodMatcher {
}
but ComposablePointcut.union() has 2 variants, one accepts ClassFilter and the other accepts MethodMatcher. So IDEA should ask for the interface I want to implement to avoid "Ambiguous method call" problem.
Same problem if I generate SetterMethodMatcher as an inner class.