Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » newbie question
newbie question [message #587338] Wed, 09 March 2005 06:02
Hugh McBride is currently offline Hugh McBride
Messages: 2
Registered: July 2009
Junior Member
Am quite new to aop , currently investigating the use of eclipse and
aspectj for detecting illegal method calls ( i.e policy enforcement).
There is a code pattern
that we are looking to detect , a double for loop that contains certain
set methods i.e.


for(int i = 0; i< 10; i++)
{
for(int j = 0; j< 10; j++)
{

classInstanceA.setObscureVar(blah);
classInstanceB.setOtherObscureVar(blahblah);

}
}

this to prevent certain variable from being overwritten.

Is there any way I can detect this type of construct using aop.

Any pointers /suggestions welcome

thanks in advance
H
Previous Topic:Accessing parameter names in advice
Next Topic:Where to begin? java.lang.NoSuchFieldError: ajc$cflowCounter$0
Goto Forum:
  


Current Time: Wed Aug 20 04:52:46 EDT 2014

Powered by FUDForum. Page generated in 0.02065 seconds