Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Eliminating aspect .class files

No, the inter type declaration is logically part of the aspect and so
it continues to live there.  AspectJ isn't for splicing new methods into existing
classes.  It is for saying: I have this concern that I am expressing as
an aspect and for some method invocations sent to some target type, I
want the aspect to answer them.

Does the existence of the aspect class files cause a problem?

Andy.

2009/3/27 Saurabh Shukla <sshukla@xxxxxxxxxxxxx>
Hello,

I have just started working on AspectJ and I find that the ajc does not
inject the body of inter-type method declarations into the target .class
file.

e.g. If the aspect Aj.aj is adding a method to the class A.java then
Aj.class contains the
       body of the method.

Is there a way to completely eliminate Aj.class and inject all the
methods along with their  bodies directly into A.class?

Thanks,
----- Saurabh

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top