Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Using Aspectj to Access a Private Base Class Member

Hi John,

If you take a look at privileged (use the privileged keyword in the main aspect declaration) then it should be able to access private members.

Cheers,

Russ

On 16 Apr 2004, at 22:09, John Kelty wrote:

Hi all,

I am writing a subclass that derives from a public
Apache Axis WSIF class.  In one of the methods I am
overwriting, I need access to a private member
variable of the Apache Axis base class.  However,
there is no getter method for that member variable, so
my derived class has no way to access this variable.

I first tried to declare a getter method in the
aspect, but that wouldn’t compile because the aspect
didn’t have visibility to the private field in
question.

What is the best way to use aspectj to define a means
for my derived class to get at the private variable in
the base class?

Thanks in advance,
John




	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top