<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<!-- MHonArc v2.6.10 -->
	<channel>
		<title>aspectj-users</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/maillist.html</link>
		<description>aspectj-users</description>
		<language>en-us</language>
		<pubDate>Mon, 21 May 2012 16:30:53 GMT</pubDate>
		<lastBuildDate>Mon, 21 May 2012 16:30:53 GMT</lastBuildDate>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<generator>MHonArc RSS 2.0 RCFile</generator>
		<managingEditor>webmaster@eclipse.org (Webmaster)</managingEditor>
		<webMaster>webmaster@eclipse.org (Webmaster)</webMaster>
		<image>
			<title>aspectj-users</title>
			<url>http://www.eclipse.org/eclipse.org-common/themes/Phoenix/images/eclipse_home_header.jpg</url>
			<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/maillist.html</link>
		</image>
 

	<item>
		<title>[aspectj-users] Accessing protected methods of parent class from	within an aspect in another package</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13547.html</link>
		<description>Hi there.I have Parent class and a child one. The parent class has some protected  methods.My pointcut works on methods of the child class. The problem is that I want to access protected methods of the parent in my Aspect, but they are notbsp;visible from ...</description>
		<content:encoded><![CDATA[<table width="100%"><tr><td style="">Hi there.<div><br></div><div>I have Parent class and a child one. The parent class has some&nbsp;<i>protected&nbsp;</i>&nbsp;methods.</div><div>My pointcut works on methods of the child class. The problem is that I want to access protected methods of the parent in my Aspect, but they are not&nbsp;</div><div>visible from within my Aspect.</div><div><br></div><div>All these 3 classes (Parent, Child, Aspect) are in different packages.&nbsp;</div><div><br></div><div>I read here&nbsp;<a href="http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg03270.html">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg03270.html</a></div><div>that using&nbsp;<i>privileged&nbsp;</i>&nbsp;modifier will solve the problem but it does not work for me.</div><div>Any idea??</div><div><br></div><div>Sina</div></td></tr></table>]]></content:encoded>
		<pubDate>Mon, 21 May 2012 16:25:30 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13547.html</guid>
		<author>my.linked.account@xxxxxxx (Sina)</author>
	</item>
	<item>
		<title>[aspectj-users] Fwd: trigger all calls/sets from an annotated	parameter within a method</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13546.html</link>
		<description>Hi all,I&amp;#39;m trying to trigger all calls/sets from an annotated parameter within a method. Consider the following example:public class A {&amp;#xA0;&amp;#xA0;&amp;#xA0;&amp;#xA0;&amp;#xA0;&amp;#xA0; public void foo(@MyAnno B b1, B b2){ &amp;#xA0;&amp;#xA0;&amp;#xA0; &amp;#xA0;&amp;#xA0;&amp;#xA0; b1.bar(); &amp;#xA0;&amp;#xA0;&amp;#xA0; &amp;#xA0;&amp;#xA0;&amp;#xA0; //this should trigger &amp;#xA0;&amp;#xA0;&amp;#xA0; &amp;#xA0;A0;&amp;#xA0; b1.field = 42;0; /...</description>
		<content:encoded><![CDATA[Hi all,<br><div class="gmail_quote"><br>I&#39;m trying to trigger all calls/sets from an annotated parameter within a method. Consider the following example:<br><br>public class A {<br>&#xA0;&#xA0;&#xA0;<br>&#xA0;&#xA0;&#xA0; public void foo(@MyAnno B b1, B b2){<br>

&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; b1.bar(); &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; //this should trigger<br>
&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; b1.field = 42;&#xA0; //this should trigger<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0;<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; b2.bar(); &#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; //should not trigger<br>&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; b2.field = 42;&#xA0; //should not trigger<br>&#xA0;&#xA0;&#xA0; }<br>}<br><br>public class B {<br>&#xA0;&#xA0;&#xA0; public int field;<br>


&#xA0;&#xA0;&#xA0; public void bar() {&#xA0;&#xA0;&#xA0; }<br>}<br><br>@Retention(RetentionPolicy.RUNTIME)<br>@Target(ElementType.PARAMETER)<br>public @interface MyAnno {<br>}<br><br><br>So far I have the following aspect. But of course this triggers all calls and sets from all method parameters. <br>


<br>@Aspect<br>public class MyAspect {<br>&#xA0;&#xA0;&#xA0; @Before(&quot;cflowbelow(execution(* *.*(..,@MyAnno (*),..))) &amp;&amp; (call(* *(..)) || set(* *)) &amp;&amp; !within(MyAspect)&quot;)<br>&#xA0;&#xA0;&#xA0; public void belowAdvice() {<br>


&#xA0;&#xA0;&#xA0; &#xA0;&#xA0;&#xA0; System.out.println(&quot;triggered&quot;);<br>&#xA0;&#xA0;&#xA0; }<br>}<br><br>Is there any way to only trigger the calls and sets from the annotated (in my case b1) parameter within a method (foo())?<br><br><br>Thanks in advance!<br>


<br>Fred
</div><br>
]]></content:encoded>
		<pubDate>Mon, 21 May 2012 15:50:52 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13546.html</guid>
		<author>frederick.egli@xxxxxxx (Frederick Egli)</author>
	</item>


	<item>
		<title>[aspectj-users] Issue with WAR file</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13545.html</link>
		<description>Hello, We have a problem and we tried to figure out if this problem can be solved by iajc. We have WAR file which contains the source and the @aspectJ files. We use the ANT command  &amp;lt;iajc&amp;gt; inpath=&amp;quot;my_original_War&amp;quot; -outJar=&amp;quot;MyWaruot; - classpath=&amp;quot;The full l...</description>
		<content:encoded><![CDATA[<font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">We have a problem and we tried to figure
out if this problem can be solved by iajc. We have WAR file which contains
the source and the @aspectJ files.</font>
<br><font size=2 face="sans-serif">We use the ANT command &nbsp;</font><font size=2 color=#800080 face="sans-serif"><b>&lt;iajc&gt;</b></font><font size=2 face="sans-serif">
<b>inpath</b>=</font><font size=2 color=#0020c2 face="sans-serif">&quot;my_original_War&quot;</font><font size=2 face="sans-serif">
-<b>outJar</b>=</font><font size=2 color=#0020c2 face="sans-serif">&quot;MyWar&quot;</font><font size=2 face="sans-serif">
- <b>classpath</b>=</font><font size=2 color=#0020c2 face="sans-serif">&quot;The
full list of jar&quot;</font>
<br>
<br><font size=2 face="sans-serif">The weaven did not report any error,
everything seems fine. BUT, when we &nbsp;tried to run the WAR file inside
the EAR, it fails. We compared the both WAR and the &nbsp;WAR produced
by the Weaver did not have the same structure as the original WAR.</font>
<br>
<br><font size=2 face="sans-serif">The WAR has an additional folder starting
from the root : com\companyName\projectName\.... In fact, the weaver have
put the src folder at the root of the WAR file instead of keeping the classes
inside WEB-INF\classes. It it like having duplicated classes, with and
without veaven.</font>
<br>
<br><font size=2 face="sans-serif">For sure, it is not normal ?</font>
<br><font size=2 face="sans-serif">Iis there a way to specify with IAJC
&nbsp;the destination folder where to put the weaven classes inside the
WAR (I think, there are weaven classes ?)</font>
<br>
<br><font size=2 face="sans-serif">What are our alternatives ?</font>
<br>
<br><font size=2 face="sans-serif">Best regards and thank you for your
quick feedback.</font>
<br>
<br><font size=2 face="sans-serif">JA.</font>
<br>
<br><font size=2 face="sans-serif">=============================================</font>
<br><font size=2 face="sans-serif">The exact command for the weaver</font>
<br><font size=2 face="sans-serif">=============================================</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;iajc
inpath=&quot;Web_origine.war&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; outjar=&quot;Web.war&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;showWeaveInfo=&quot;false&quot;&gt; &nbsp; &nbsp;
&nbsp; &nbsp;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;classpath&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/aspectjrt.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/javax.faces.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/annotations-4.2.0.Final.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/antlr-2.7.6.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/cglib-nodep-2.2.2.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/cof-service-api-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/cof-service-web-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-core-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-dm-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-email-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-il-services-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-java-services-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-moneris-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-pega-services-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-web-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-web-struts-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-web-tags-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/common-api-wi-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/commons-lang-2.4.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/commons-logging-1.1.1.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/commons-validator-1.4.0.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/cssparser-0.9.6.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/dom4j-1.6.1.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/guava-11.0.1.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/hibernate-3.3.2.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/hibernate-annotations-3.4.0.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/hibernate-commons-annotations-3.4.0.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/hibernate-entitymanager-3.4.0.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/hibernate-validator-4.2.0.Final.jar&quot;/&gt; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/junit-4.10.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/log4j-1.2.16.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/ojdbc14-10.2.0.4.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/org.springframework.asm-3.0.6.RELEASE.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/org.springframework.beans-3.0.6.RELEASE.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/org.springframework.context-3.0.6.RELEASE.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/org.springframework.core-3.0.6.RELEASE.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/org.springframework._expression_-3.0.6.RELEASE.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/org.springframework.jdbc-3.0.6.RELEASE.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/org.springframework.orm-3.0.6.RELEASE.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/org.springframework.transaction-3.0.6.RELEASE.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/org.springframework.web-3.0.6.RELEASE.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/pop-api-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/pop-services-official.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/richfaces-components-api-4.2.0.Final.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/richfaces-components-ui-4.2.0.Final.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/richfaces-core-api-4.2.0.Final.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/richfaces-core-impl-4.2.0.Final.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/sac-1.3.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/slf4j-api-1.6.4.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/slf4j-log4j12-1.6.4.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/j2ee.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/commons-collections-3.2.1.jar&quot;/&gt;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;pathelement
path = &quot;ext/org.springframework.aop-3.0.6.RELEASE.jar&quot;/&gt; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp;&lt;/classpath&gt;</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &lt;/iajc&gt;</font>]]></content:encoded>
		<pubDate>Fri, 18 May 2012 16:50:11 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13545.html</guid>
		<author>Jean.Andre@xxxxxxx (Jean Andre)</author>
	</item>
	<item>
		<title>Re: [aspectj-users] Aspect in an EAR file</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13544.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre>Yes, James is right, load time weaving can do the kinds of thing you
want to do but it will incur you a startup hit.

Using a javaagent each classloader in the system gets a weaver and
will use any aop.xml files it can 'reach' through its classpath to
configure itself.  So if one jar on that classpath defines an aop.xml
file containing an aspect, then that weaver associated with the
classloader will apply the aspect to everything loaded through that
same classloader.

Weaving will be about the same speed regardless of when you choose to
do it (compile time, post compile time, load time) but:
- load time weaving will weave things as they are loaded.  This may
sound obvious, but this does mean if something isn't loaded on a
particular run of the application then you won't weave it or incur the
cost of weaving it.  Whereas compile time weaving will weave
everything.
- beyond speed there is a memory overhead for a weaver that you will
incur.  But having said that we are including some basic caching in
the next version that will mean you can weave on first startup,
automatically store those woven entities, and then use the stored
cached versions on the subsequent starts. (reducing the memory and
performance impact).

Andy

On 18 May 2012 04:30, James Black &lt;planiturthian@xxxxxxxxx&gt; wrote:
&gt; I don't see why you can't do this, but you will take a performance hit as it
&gt; weaves at run time.
&gt;
&gt; It is best if you can apply the aspects during compilation, but if that
&gt; isn't an option then run time is your other option.
&gt;
&gt; On May 18, 2012 6:10 AM, &quot;jbolger&quot; &lt;john.bolger@xxxxxxxxx&gt; wrote:
&gt;&gt;
&gt;&gt; Hi,
&gt;&gt;
&gt;&gt; Can you tell me if I can configure an aspect within an EAR to apply advice
&gt;&gt; against all code (including jars and wars) within the EAR and it's lib
&gt;&gt; (without having to define the aspect in each of the wars)?
&gt;&gt;
&gt;&gt; Also in this case, which weaving style is most appropriate? Is it even
&gt;&gt; possible to perform compile/post-compile time weaving for an EAR when the
&gt;&gt; jars / wars it includes have already been built?
&gt;&gt;
&gt;&gt; And finally, is any weaving style more performant than the other?
&gt;&gt;
&gt;&gt; Thanks in advance,
&gt;&gt; John
&gt;&gt;
&gt;&gt; --
&gt;&gt; View this message in context:
&gt;&gt; <a  href="http://aspectj.2085585.n4.nabble.com/Aspect-in-an-EAR-file-tp4644307.html">http://aspectj.2085585.n4.nabble.com/Aspect-in-an-EAR-file-tp4644307.html</a>
&gt;&gt; Sent from the AspectJ - users mailing list archive at Nabble.com.
&gt;&gt; _______________________________________________
&gt;&gt; aspectj-users mailing list
&gt;&gt; aspectj-users@xxxxxxxxxxx
&gt;&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/aspectj-users">https://dev.eclipse.org/mailman/listinfo/aspectj-users</a>
&gt;
&gt;
&gt; _______________________________________________
&gt; aspectj-users mailing list
&gt; aspectj-users@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/aspectj-users">https://dev.eclipse.org/mailman/listinfo/aspectj-users</a>
&gt;

</pre>]]></content:encoded>
		<pubDate>Fri, 18 May 2012 16:06:27 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13544.html</guid>
		<author>andrew.clement@xxxxxxx (Andy Clement)</author>
	</item>
	<item>
		<title>Re: [aspectj-users] Advice did not match</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13543.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre>I might need to see where you are applying it?

I created this tiny thing and your aspect worked just fine:

class Foo {
	@Updates void foo(String s) {}
}

The advice did not match indicates that during the build of the code
containing the aspect it didn't find anything to apply it to.  If that
is because you are building it into an aspect library to use later,
you can just ignore the warning.  If you expected it to match
something though - I'd need to see what it isn't matching.  If it
isn't matching you can break it into smaller pieces to determine which
piece is causing the problem.

cheers
Andy

On 17 May 2012 11:40, hart404 &lt;hart404@xxxxxxxxx&gt; wrote:
&gt; Can anyone tell me why I'm getting &quot;Advice did not match&quot; on the after advice
&gt; in the following code, please?
&gt;
&gt; package edu.uat.cs2011.observerpattern;
&gt;
&gt; import java.util.ArrayList;
&gt; import java.util.List;
&gt;
&gt; public aspect ObservableAspect {
&gt;
&gt; &#xA0; &#xA0; &#xA0; &#xA0;declare parents: hasmethod(@Updates * *.*(..)) implements Observable;
&gt;
&gt; &#xA0; &#xA0; &#xA0; &#xA0;private List&lt;Observer&gt; observers = new ArrayList&lt;Observer&gt;();
&gt;
&gt; &#xA0; &#xA0; &#xA0; &#xA0;public void addObserver(Observer observer) {
&gt; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0;observers.add(observer);
&gt; &#xA0; &#xA0; &#xA0; &#xA0;}
&gt;
&gt; &#xA0; &#xA0; &#xA0; &#xA0;public void removeObserver(Observer observer) {
&gt; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0;observers.remove(observer);
&gt; &#xA0; &#xA0; &#xA0; &#xA0;}
&gt;
&gt; &#xA0; &#xA0; &#xA0; &#xA0;public void notifyObservers() {
&gt; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0;for (Observer observer : observers) {
&gt; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0;observer.update();
&gt; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0;}
&gt; &#xA0; &#xA0; &#xA0; &#xA0;}
&gt;
&gt; &#xA0; &#xA0; &#xA0; &#xA0;public pointcut mutations(Observable observable) : execution(@Updates *
&gt; *.*(..)) &amp;&amp; this(observable);
&gt;
&gt; &#xA0; &#xA0; &#xA0; &#xA0;after(Observable observable) : mutations(observable) {
&gt; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0;for (Observer observer : observers) {
&gt; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0;observer.update();
&gt; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0;}
&gt; &#xA0; &#xA0; &#xA0; &#xA0;}
&gt;
&gt; }
&gt;
&gt; --
&gt; View this message in context: <a  href="http://aspectj.2085585.n4.nabble.com/Advice-did-not-match-tp4643399.html">http://aspectj.2085585.n4.nabble.com/Advice-did-not-match-tp4643399.html</a>
&gt; Sent from the AspectJ - users mailing list archive at Nabble.com.
&gt; _______________________________________________
&gt; aspectj-users mailing list
&gt; aspectj-users@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/aspectj-users">https://dev.eclipse.org/mailman/listinfo/aspectj-users</a>

</pre>]]></content:encoded>
		<pubDate>Fri, 18 May 2012 15:55:37 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13543.html</guid>
		<author>andrew.clement@xxxxxxx (Andy Clement)</author>
	</item>
	<item>
		<title>Re: [aspectj-users] Aspect in an EAR file</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13542.html</link>
		<description></description>
		<content:encoded><![CDATA[<p>I don&#39;t see why you can&#39;t do this, but you will take a performance hit as it weaves at run time.</p>
<p>It is best if you can apply the aspects during compilation, but if that isn&#39;t an option then run time is your other option.</p>
<div class="gmail_quote">On May 18, 2012 6:10 AM, &quot;jbolger&quot; &lt;<a href="mailto:john.bolger@xxxxxxxxx">john.bolger@xxxxxxxxx</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Can you tell me if I can configure an aspect within an EAR to apply advice<br>
against all code (including jars and wars) within the EAR and it&#39;s lib<br>
(without having to define the aspect in each of the wars)?<br>
<br>
Also in this case, which weaving style is most appropriate? Is it even<br>
possible to perform compile/post-compile time weaving for an EAR when the<br>
jars / wars it includes have already been built?<br>
<br>
And finally, is any weaving style more performant than the other?<br>
<br>
Thanks in advance,<br>
John<br>
<br>
--<br>
View this message in context: <a href="http://aspectj.2085585.n4.nabble.com/Aspect-in-an-EAR-file-tp4644307.html" target="_blank">http://aspectj.2085585.n4.nabble.com/Aspect-in-an-EAR-file-tp4644307.html</a><br>
Sent from the AspectJ - users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
aspectj-users mailing list<br>
<a href="mailto:aspectj-users@xxxxxxxxxxx">aspectj-users@xxxxxxxxxxx</a><br>
<a href="https://dev.eclipse.org/mailman/listinfo/aspectj-users" target="_blank">https://dev.eclipse.org/mailman/listinfo/aspectj-users</a><br>
</blockquote></div>
]]></content:encoded>
		<pubDate>Fri, 18 May 2012 11:30:44 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13542.html</guid>
		<author>planiturthian@xxxxxxx (James Black)</author>
	</item>
	<item>
		<title>[aspectj-users] Aspect in an EAR file</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13541.html</link>
		<description>Hi, Can you tell me if I can configure an aspect within an EAR to apply advice against all code (including jars and wars) within the EAR and it's lib (without having to define the aspect in each of the wars)? Also in this case, which weaving style is most ...</description>
		<content:encoded><![CDATA[<pre>Hi,

Can you tell me if I can configure an aspect within an EAR to apply advice
against all code (including jars and wars) within the EAR and it's lib
(without having to define the aspect in each of the wars)?

Also in this case, which weaving style is most appropriate? Is it even
possible to perform compile/post-compile time weaving for an EAR when the
jars / wars it includes have already been built?

And finally, is any weaving style more performant than the other?

Thanks in advance,
John

--
View this message in context: <a  href="http://aspectj.2085585.n4.nabble.com/Aspect-in-an-EAR-file-tp4644307.html">http://aspectj.2085585.n4.nabble.com/Aspect-in-an-EAR-file-tp4644307.html</a>
Sent from the AspectJ - users mailing list archive at Nabble.com.

</pre>]]></content:encoded>
		<pubDate>Fri, 18 May 2012 10:09:40 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13541.html</guid>
		<author>john.bolger@xxxxxxx (jbolger)</author>
	</item>


	<item>
		<title>[aspectj-users] Advice did not match</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13540.html</link>
		<description>Can anyone tell me why I'm getting &amp;quot;Advice did not match&amp;quot; on the after advice in the following code, please? package edu.uat.cs2011.observerpattern; import java.util.ArrayList; import java.util.List; public aspect ObservableAspect { declare parents: hasmet...</description>
		<content:encoded><![CDATA[<pre>Can anyone tell me why I'm getting &quot;Advice did not match&quot; on the after advice
in the following code, please?

package edu.uat.cs2011.observerpattern;

import java.util.ArrayList;
import java.util.List;

public aspect ObservableAspect {

	declare parents: hasmethod(@Updates * *.*(..)) implements Observable;

	private List&lt;Observer&gt; observers = new ArrayList&lt;Observer&gt;();

	public void addObserver(Observer observer) {
		observers.add(observer);
	}

	public void removeObserver(Observer observer) {
		observers.remove(observer);
	}

	public void notifyObservers() {
		for (Observer observer : observers) {
			observer.update();
		}
	}

	public pointcut mutations(Observable observable) : execution(@Updates *
*.*(..)) &amp;&amp; this(observable);

	after(Observable observable) : mutations(observable) {
		for (Observer observer : observers) {
			observer.update();
		}
	}

}

--
View this message in context: <a  href="http://aspectj.2085585.n4.nabble.com/Advice-did-not-match-tp4643399.html">http://aspectj.2085585.n4.nabble.com/Advice-did-not-match-tp4643399.html</a>
Sent from the AspectJ - users mailing list archive at Nabble.com.

</pre>]]></content:encoded>
		<pubDate>Thu, 17 May 2012 18:39:59 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13540.html</guid>
		<author>hart404@xxxxxxx (hart404)</author>
	</item>
	<item>
		<title>Re: [aspectj-users] Corbetura + LTW</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13539.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre>Sorry I didn't reply sooner - at a conference right now.

Yes, we can work with cobertura but you have to be careful on ordering
when running it and AJ together.  There is at least one open bug in
this area:
<a  href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=325362">https://bugs.eclipse.org/bugs/show_bug.cgi?id=325362</a>

cheers,
Andy

On 16 May 2012 08:09, Steve Ash &lt;stevemash@xxxxxxxxx&gt; wrote:
&gt; Just for anyone that runs across this in the googles-- this was just
&gt; me being stupid. &#xA0;I had not cleaned the workspace and the class files
&gt; that corbetura was instrumenting were already woven at compile time.
&gt; So compile time ajc -&gt; corbetura instrumentation -&gt; LTW caused this
&gt; blow up. &#xA0;You can see the ajc stuff already in the class file that I
&gt; attached to my previous message.
&gt;
&gt; Once I cleaned and re-ran letting javac build the original class files
&gt; then having corbetura instrument those and do LTW on the corbetura
&gt; classes &#xA0;--- everything worked fine.
&gt;
&gt; So to answer my original question -- it appears that with corbetura
&gt; 2.5.1 and AspectJ Weaver 1.7.0.M1 -- LTW can weave into corbetura
&gt; instrumented classes.
&gt;
&gt; Steve
&gt;
&gt; On Tue, May 15, 2012 at 11:45 AM, Steve Ash &lt;stevemash@xxxxxxxxx&gt; wrote:
&gt;&gt; I have run across a number of things on google so I know that this has
&gt;&gt; come up in the past, but I couldn't get a clear answer. &#xA0;So sorry for
&gt;&gt; the re-post.
&gt;&gt;
&gt;&gt; I am trying to use corbetura + aspectJ LTW and the weaver is blowing
&gt;&gt; up on the corbetura instrumented classes. &#xA0;I am trying to dig in to
&gt;&gt; the class file to see if I can spot the exact problem, but wanted to
&gt;&gt; post and see if the expectation was that this would work or not. &#xA0;I am
&gt;&gt; using the 1.7.0.M1 weaver and this is the stack trace:
&gt;&gt;
&gt;&gt; SEVERE: com/argodata/empi/database/util/InsertIfMissingEntityLoader
&gt;&gt; org.aspectj.apache.bcel.classfile.ClassFormatException: File:
&gt;&gt; 'com.argodata.empi.database.util.InsertIfMissingEntityLoader': Invalid
&gt;&gt; byte tag in constant pool: 0
&gt;&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:192)
&gt;&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
&gt;&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.bcel.Utility.makeJavaClass(Utility.java:467)
&gt;&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.bcel.BcelWeaver.processReweavableStateIfPresent(BcelWeaver.java:1387)
&gt;&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1097)
&gt;&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.tools.WeavingAdaptor.getWovenBytes(WeavingAdaptor.java:472)
&gt;&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.tools.WeavingAdaptor.weaveClass(WeavingAdaptor.java:323)
&gt;&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:99)
&gt;&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:54)
&gt;&gt;
&gt;&gt; I have a few spring-aspects @Transactional annotations in there
&gt;&gt; weaving the before, after, and throwing advice for
&gt;&gt; TransactionalAspect.
&gt;&gt;
&gt;&gt; I have attached the cobetura instrumented class file to this message
&gt;&gt; if that helps at all.
&gt;&gt;
&gt;&gt; But I guess the main question is: should this work? &#xA0;Or is this a
&gt;&gt; known limitation?
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt;
&gt;&gt; Steve
&gt; _______________________________________________
&gt; aspectj-users mailing list
&gt; aspectj-users@xxxxxxxxxxx
&gt; <a  href="https://dev.eclipse.org/mailman/listinfo/aspectj-users">https://dev.eclipse.org/mailman/listinfo/aspectj-users</a>

</pre>]]></content:encoded>
		<pubDate>Thu, 17 May 2012 17:45:13 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13539.html</guid>
		<author>andrew.clement@xxxxxxx (Andy Clement)</author>
	</item>


	<item>
		<title>Re: [aspectj-users] Corbetura + LTW</title>
		<link>http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13538.html</link>
		<description> </description>
		<content:encoded><![CDATA[<pre>Just for anyone that runs across this in the googles-- this was just
me being stupid.  I had not cleaned the workspace and the class files
that corbetura was instrumenting were already woven at compile time.
So compile time ajc -&gt; corbetura instrumentation -&gt; LTW caused this
blow up.  You can see the ajc stuff already in the class file that I
attached to my previous message.

Once I cleaned and re-ran letting javac build the original class files
then having corbetura instrument those and do LTW on the corbetura
classes  --- everything worked fine.

So to answer my original question -- it appears that with corbetura
2.5.1 and AspectJ Weaver 1.7.0.M1 -- LTW can weave into corbetura
instrumented classes.

Steve

On Tue, May 15, 2012 at 11:45 AM, Steve Ash &lt;stevemash@xxxxxxxxx&gt; wrote:
&gt; I have run across a number of things on google so I know that this has
&gt; come up in the past, but I couldn't get a clear answer. &#xA0;So sorry for
&gt; the re-post.
&gt;
&gt; I am trying to use corbetura + aspectJ LTW and the weaver is blowing
&gt; up on the corbetura instrumented classes. &#xA0;I am trying to dig in to
&gt; the class file to see if I can spot the exact problem, but wanted to
&gt; post and see if the expectation was that this would work or not. &#xA0;I am
&gt; using the 1.7.0.M1 weaver and this is the stack trace:
&gt;
&gt; SEVERE: com/argodata/empi/database/util/InsertIfMissingEntityLoader
&gt; org.aspectj.apache.bcel.classfile.ClassFormatException: File:
&gt; 'com.argodata.empi.database.util.InsertIfMissingEntityLoader': Invalid
&gt; byte tag in constant pool: 0
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:192)
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.bcel.Utility.makeJavaClass(Utility.java:467)
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.bcel.BcelWeaver.processReweavableStateIfPresent(BcelWeaver.java:1387)
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1097)
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.tools.WeavingAdaptor.getWovenBytes(WeavingAdaptor.java:472)
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.tools.WeavingAdaptor.weaveClass(WeavingAdaptor.java:323)
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:99)
&gt; &#xA0; &#xA0; &#xA0; &#xA0;at org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:54)
&gt;
&gt; I have a few spring-aspects @Transactional annotations in there
&gt; weaving the before, after, and throwing advice for
&gt; TransactionalAspect.
&gt;
&gt; I have attached the cobetura instrumented class file to this message
&gt; if that helps at all.
&gt;
&gt; But I guess the main question is: should this work? &#xA0;Or is this a
&gt; known limitation?
&gt;
&gt; Thanks,
&gt;
&gt; Steve

</pre>]]></content:encoded>
		<pubDate>Wed, 16 May 2012 15:09:36 GMT</pubDate>
		<guid isPermaLink="true">http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13538.html</guid>
		<author>stevemash@xxxxxxx (Steve Ash)</author>
	</item>

 
	</channel>
	</rss>
<!-- MHonArc v2.6.10 -->

