Skip to main content



      Home
Home » Language IDEs » AspectJ » newbie question
newbie question [message #587338] Wed, 09 March 2005 06:02
Eclipse UserFriend
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 Jul 16 16:48:21 EDT 2025

Powered by FUDForum. Page generated in 0.03831 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top