Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Problem with AspectJ syntax: "no match for this type name"
Problem with AspectJ syntax: "no match for this type name" [message #583632] Mon, 04 October 2004 10:09
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
Hi all,
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:
pointcut loggedMethods():
(execution(* package1.*.*(..))
execution(* package2.*.*(..))
execution(* package3.SpecificClassNameHere.*(..))

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?

Previous Topic:Eclipse 3.1M1 and JDK 1.5
Next Topic:AJDT fiddling with the Java Build path?
Goto Forum:

Current Time: Mon Apr 22 22:43:20 GMT 2019

Powered by FUDForum. Page generated in 0.02040 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top