I have a jar that contains a Blah class

and in Blah() ctor it somehow calls System.gc()


now let's say I use the jar that contains Blah(), and call new Blah().
I would get the gc(),  so I am trying to detect this call ----- I'm
not sure where it called the "new Blah()" and System.gc()  .  I'm
trying to do through aspectj, by doing a pointcut on System.gc


but the problem is, now if I include the Blah() implementation in my
code, it's able to detect it, but if I just include the Blah() jar, it
can't weave and detect it.

I tried adding the -javaagent:aspectjweaver.jar  (from the doc in
http://www.eclipse.org/aspectj/doc/released/devguide/ltw-configuration.html#enabling-load-time-weaving)
 , but it doesn't work


I also included the source code .   the testweaver/yy dir contains the
files that create the jar that contains Blah class.


Thanks

Attachment: testweave.tar.gz
Description: GNU Zip compressed data

_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to