The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

GDW62 (94) [Avatar] Offline
#1
I'm attempting to get the "Injecting AspectJ aspects" example working. This example is not included in the source code.

I copied and pasted listing 4.9 into JudgeAspect.aj which is where I'm guessing that it belongs since it's not specified in the book. The main errors as indicated by STS (besides references to the yet-to-be-created CriticismEngine) are "pointcut cannot be resolved to a type" and "This method requires a body instead of a semicolon" (referring to performance()).

I'm guessing that the pointcut error might be due to a missing library/import or some other configuration problem.

Any ideas?

Thanks