History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16828
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: t800t8
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

"Ambiguous method call" problem when gerenating class

Created: 08 Jan 08 16:01   Updated: 12 Jan 08 14:56
Component/s: Editor. Intention Actions

Build: 7,626


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.