| Re: [aspectj-users] Problems when I add a method to a class using AspectJ |
|
The meaning of this lint warning is briefly given in this thread: http://dev.eclipse.org/mhonarc/lists/aspectj-dev/msg01420.html In your case, AspectJ doesn't weave into the JDK libraries. This is partly because Sun's license does not permit modifications of the byte code. I'm not sure if AJ will let you "break" the license yourself by explicitly putting the "rt.jar" in the "-inpath". Even if it does, you would have to make sure that the newly-woven rt.jar is read first by the JVM when it boots. Note that you can advise "call" joinpoints to Method's methods made from your code. Those calls don't require AJ to modify Method; your code is modified instead. Could you do that to meet your needs? (This approach won't catch other calls to Method from within other standard library code, however.) dean email_ricevute_da-aspectj@xxxxxxxx wrote: I would like to add a method at the class java.lang.reflect.Method using AspectJ, but it doesn't work. -- Dean Wampler, Ph.D. dean at aspectprogramming.com http://www.aspectprogramming.com http://www.contract4j.org I want my tombstone to say: Unknown Application Error in Dean Wampler.exe. Application Terminated. [Okay] [Cancel] |