Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Accesing Enclosing Class fields

Hi,
 
I have the following class structure:
 
class A {
 int x; 
 
 class B{
   public void methodB() {
     int y = x;
   }
 }
 
}
 
Now, if I move the methodB into an aspect, I am unable to access A's field x from inside it. It is no longer recognized by the aspect. What do I do to access A's field from there?
 
thanks.
 
 


Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'

Back to the top