Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Annotated method parameters and wildcards

I haven't been able to match an annotated method parameter if it's surrounded on both sides by the .. wildcard. In the code below, the first 4 advice declarations match foo, but the fifth doesn't. Am I doing something wrong or is this not allowed or is it a bug? Thanks for your help.

     @interface A {};
     public void foo(@A String s) {}  
1    before(): execution(* *(@A (*))) {}  
2    before(): execution(* *(.., @A (*))) {} 
3   before(): execution(* *(@A (*), ..)) {}    
4    before(): execution(* *(.., String, ..)) {}
5    before(): execution(* *(.., @A (*), ..)) {}

Back to the top