Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Accessing private members from advice

Hi,

Is it possible to access private members of class from an advice that is in another package?

I have a class in package a and I want to create an aspect in package a.test that adds a getState function to the class in package a. For that I wold need access to some private/protected members that I wold not like to make public (or add getters).

This aspect wold be used only for testing purposes so I don't want to put it in package a to get access to protected members.

Thanks,
Cosmin Mogos


Back to the top