|Problem with AspectJ syntax: "no match for this type name" [message #583632]
||Mon, 04 October 2004 10:09
| Michael Moser
Registered: July 2009
sorry for this probably stupid append, but occasionally I still have a
hard time to master the AspectJ syntax and run into weird problems:
I am trying to specify a very simple log-aspect:
For this I defined:
i.e. I want to log ALL methods from ALL classes in package1 and
package2 and I want log ALL methods from just a SPECIFIC class in
I always get a "no match for this type name" on the last line (the
"execution(* package3.SpecificClassNameHere.*(..))") even though by
now I checked and double-checked and tripple-checked and
quadruple-checked ... the package and class name and I am 100% sure
that they are correct and the same in the aspect as well as in the
java source file.
According to "AspectJ in Action" page 71, chapter 3, table 3.3
[Examples of method signatures] this should be the correct syntax to
match all methods within a specific class. What am I doing wrong???
Why does this not match my class?
Powered by FUDForum
. Page generated in 0.02040 seconds