Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Q about "adviceexecution" and "declare error"

Title: Dean Wampler's Signature
I'm working on idioms for defining PCDs that a class developer can use to exclude join points from possible advices. For example, say I want a 'critical section' to never be advised.

What I've tried is something like the following:

declare error: criticalSectionPCD() && adviceexecution(): "Can't advise the critical section."

This compiles fine, but it has no effect. (I defined another aspect that breaks the rule.)

Suggestions?

dean

--
Dean Wampler, Ph.D.
dean at aspectprogramming.com
objectmentor.com
aspectprogramming.com
contract4j.org

I want my tombstone to say:
Unknown Application Error in Dean Wampler.exe.
Application Terminated.

Back to the top