Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] super and extends in generic pointcuts

Hi

I wanted to write a small example to see how the super and extends
work in generic pointcut
matching, but p11 and p12 pointcut do not seem to match. Can someone
help me to figure
out what did I do wrong?

public interface Interface1 { }

public class Simple1 implements Interface1{
	public void func9(Collection<Simple1>s){ }
	public void func10(Collection<Simple1>s){ }
}

pointcut p11() : execution (void Simple1.func9(Collection<? extends Simple1>));

pointcut p12() : execution (void Simple1.func10(Collection<? super
Interface1>));

Best wishes,
Denes


Back to the top