Skip to main content

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

4th and 5th are actually not allowed I'm afraid.  You can't use '..'
in two places - really you should get an error for (4) and the fact
you don't is a regression.

Andy.

2008/5/15 srdan bejakovic <s.bejakovic@xxxxxxxxx>:
> 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 (*), ..)) {}
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top