[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Aspect Weaver
|
(1) You can, but this probably violates the JRE/SDK license,
and we recommend against it. Instead, most people get what
they want by advising calls to system classes.
(2) The AspectJ compiler ajc does not change the input jar.
It produces new classes from those in the input jar.
Wes
Mariano Ceccato wrote:
Just a couple of question for the user community?
1) If AspectJ compiler can perform weaving at byte code level, does it means
that I can modify standard java classes data structure using introductions on
them and alter their behavior by using advices on pointcuts that intercept
their methods? For instance lets consider the classes java.lang.String and
java.util.HashMap.
2) I have a jar file containing some classes and I design an aspect that
defines pointcuts that intercepts such classes. When I weave all together I
modify the byte code inside the jar file. Is there a way to unweave my aspect
from the jar file and get the original package even if I have no source code
for that?
Regards,
Mariano
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users