[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] LTW for bootstap classes
|
I read the following in the AspectJ 5 LTW documentation
(http://www.eclipse.org/aspectj/doc/released/devguide/ltw-specialcases.html):
> The following classes are not exposed to the LTW infrastructure
> regardless of the aop.xml file(s) used:
>
> - All org.aspectj.* classes (and subpackages) - as those are needed
> by the infrastructure itself
>
> - All java.* and javax.* classes (and subpackages)
>
> - All sun.reflect.* classes - as those are JDK specific classes used
> when reflective calls occurs
Having understood that much, I thought that I might give some other
classes inside rt.jar a try. Specifically, I tried to call the
non-public constructor
sun.security.rsa.RSAPrivateKeyImpl(BigInteger, BigInteger)
from a privileged aspect.
I suddeed doing so by weaving into the classfiles, producing copies of
all JRE bootstrap classes in my project's 'bin' directory. but that is
not what I want, because I would much prefer to tackle the challenge
using LTW. It just won't work, though.
I would appreciate hints concerning the following questions:
- Can it be done by LTW at all?
- If so, how? I want to call the constructor and assign the resulting
object to a member of another regular Java class, so it can work
with that instance.
- Last, but not least, I would like to do this from Eclipse 3.2 with
AJDT installed. I could not come up with a project and start
configuration properly addressing this issue.
Regards
--
Alexander Kriegisch