It is trying to weave com.ibm.db2.jcc.b.kc because it contains calls to add or put. Cflow is implemented by inserting a check at the joinpoint of interest which does the check as to whether we are actually in the specified control flow. Your code might be in com.tcs..* but maybe you use code in com.ibm.db2.jcc.b.kc (we don't know) - that would mean calls made from add/put are in the control flow of your code.
Unfortunately com.ibm.db2.jcc.b.kc looks to be near some size limits for bytecode and is dangerous to weave because the limits will get blown. I would add a !within(com.ibm.db2.jcc.b.kc) to your pointcut to skip that class. If you are only interested in calls made from code within com.tcs..* and not from any transitively invoked code you could skip cflow and use within(com.tcs..*) Andy On 4 July 2013 00:53, Krishna Jasty <[email protected]> wrote: > Hi , > > I specified weaving as follows in the code > > pointcut myclass() : within(HeapAspect); > pointcut apppackage(): execution (* com.tcs..*(..)); > pointcut UtilMethods() : cflow(apppackage()) && (call( * > java.util..add(..)) || call( * java.util.Map..put(..))) && !myclass(); > But it is trying to weave the com.ibm package as well. Is there a solution > for this. > > [java] [AppClassLoader@df6ccd] warning javax.* types are not being woven > because the weaver option '-Xset:weaveJavaxPackages=true' has not been > specified > [java] [AppClassLoader@df6ccd] error at com\ibm\db2\jcc\b\kc.java::0 > problem generating method *com.ibm.db2.jcc.b.kc.<clinit>* : Code size too > big: 94185 > [java] Exception in thread "main" java.lang.ClassFormatError: Absent > Code attribute in method that is not native or abstract in class file > com/ibm/db2/jcc/b/kc > > Thanks, > Krishnachaitanya Jasty > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > _______________________________________________ > aspectj-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/aspectj-users > >
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
