Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] priviledged aspect

Hello.
From a privileged AspectJ class I want to access the private fields of an object; lets call this object x.
To do this I would do x.fieldname.
Now I have fieldname stored in a String, lets call it y.
So how can I do the equivalent of x.y ?
Also I tried to go x.getClass().getField(y). This works fine for public fields, I need to do it for private fields.

Thank you for your kind concner.
Jenia Ivlev


The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free!

Back to the top