Skip to main content



      Home
Home » Language IDEs » AspectJ » privileged aspects
privileged aspects [message #585539] Tue, 04 January 2005 15:43
Eclipse UserFriend
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?
Previous Topic:AspectJ and CVS
Next Topic:Pointcut for super.foo
Goto Forum:
  


Current Time: Thu Jun 12 12:34:44 EDT 2025

Powered by FUDForum. Page generated in 0.04486 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top