privileged aspects [message #585539] |
Tue, 04 January 2005 15:43 |
Eclipse User |
|
|
|
I have a privileged aspect that has a around advice for a number of calls.
The calls sometime invoke a method that has package visibility (the
calling class is in a different package)this results in a
java.lang.IlegalAccessError.
I would like to get "around" this with a privileged aspect. The way I
tried to do this is in the privilaged aspects around advice I get the
Target object and method and using java reflection and then try to invoke
the method from the aspect (in the around advice). However I get an
java.lang.IlegalAccessException saying that I cant do this from the class
foo the class foo contains the call to the method with package visibility
(it is not in the same package). I thought I could do this from a
privileged Aspect. Why cant I and is there a workaround?
|
|
|
Powered by
FUDForum. Page generated in 0.04486 seconds