[
http://jira.codehaus.org/browse/MASPECTJ-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=256722#action_256722
]
Andrew Swan commented on MASPECTJ-13:
-------------------------------------
Running javac before ajc (as per this change) causes the build to fail if
AspectJ ITDs are being used to introduce members into Java classes and those
members are referenced by Java code (even in the class to which they are
introduced). This scenario occurs in most Spring Roo applications, where
getters and setters (for example) are introduced into domain entities. Any Java
code that calls those methods will fail to compile unless ajc runs before
javac. Luckily there are a [number of
workarounds|http://stackoverflow.com/questions/2610633/maven-compile-aspectj-project-containing-java-1-6-source].
> Change compile task to run after project classess compilation.
> ---------------------------------------------------------------
>
> Key: MASPECTJ-13
> URL: http://jira.codehaus.org/browse/MASPECTJ-13
> Project: Mojo AspectJ Plugin
> Issue Type: Improvement
> Affects Versions: 1.0
> Reporter: Alexander Gavrilov
> Assignee: David J. M. Karlsen
> Fix For: 1.3
>
> Original Estimate: 0 minutes
> Remaining Estimate: 0 minutes
>
> Our project consist from big amount of classes and weaving process eats to
> many resources. Therefore we are using excludes/includes settings in plugin
> configuration. But in this case it is required to include all sources, that
> referenced from weaved classes. For exaple, we have class com.test.Account,
> that could be weaved by aspect ConfigureAccount. We're write in pom
> <includes>
> <include>com/test/Account.java</include>
> </includes>
> Thats run fine unless we have dependency to another project classes, wich
> required to be included in plugin configuration to. So, when we change
> Account class and including to it some dependency we required to update
> configuration to. I belive, if we change plugin running phase to run after
> compilation then compiler can find required dependencies compiled in module
> target directory, wich is part of classpass for aspect compiler, and perform
> weaving fine.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email