newbie question [message #587338] |
Wed, 09 March 2005 11:02 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.02810 seconds