Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Cflow/StackOverflow Problem that drives me crazy

> I get a stack Overflow because the code that is executed by the
> securityInterceptor calls Location_base.get* and gets intercepted.
> But this code is in the package org.taktik.digiscreen.security and
> should not be intercepted because of the " !cflow(execution(public *
> org.taktik.digiscreen.security.*.*(..)))" part of the pointCut.

The problem is that you call that code from an advice, not from a method. "execution" matches only method executions. What you want is:

!cflow(within(org.taktik.digiscreen.security.*) && adviceexecution())


You can find some more insights in our paper about this problem:
http://www.sable.mcgill.ca/~ebodde/meta/

Eric

--
Eric Bodden
Sable Research Group, McGill University
Montréal, Québec, Canada




Back to the top