[ 
https://jira.codehaus.org/browse/MASPECTJ-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292036#comment-292036
 ] 

Camilo Horovitz commented on MASPECTJ-108:
------------------------------------------

Thanks for the explanation! 
>From what I saw in the source code, at least the 
>AbstractAjcCompiler/AjcReportMojo.setComplianceLevel methods will have to be 
>changed as they have a hardcoded version check that only goes up to 1.6.
Anyway, it looks like the AspectJ 1.7 release is planned for June so I guess 
I'll just wait until then.

                
> Java 1.7 source code not supported
> ----------------------------------
>
>                 Key: MASPECTJ-108
>                 URL: https://jira.codehaus.org/browse/MASPECTJ-108
>             Project: Mojo AspectJ Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.4
>            Reporter: Camilo Horovitz
>
> When trying to set the source code to 1.7 the plugin ignores it and uses a 
> lower than 1.5 source code compliance level (that is, it treats code with 
> generics as an error). This prevents me from using the new 1.7 features such 
> as the switch statement with strings, or the try-with-resources.
> My plugin configuration is this:
> {code}
> <plugin>
>       <groupId>org.codehaus.mojo</groupId>
>       <artifactId>aspectj-maven-plugin</artifactId>
>       <version>1.4</version>
>       <executions>
>               <execution>
>                       <goals>
>                               <goal>compile</goal>
>                               <goal>test-compile</goal>
>                       </goals>
>               </execution>
>       </executions>
>       <configuration>
>               <outxml>true</outxml>
>               <aspectLibraries>
>                       <aspectLibrary>
>                               <groupId>org.springframework</groupId>
>                               <artifactId>spring-aspects</artifactId>
>                       </aspectLibrary>
>               </aspectLibraries>
>               <weaveDependencies>
>                       <weaveDependency>
>                               <groupId>org.springframework</groupId>
>                               <artifactId>spring-aspects</artifactId>
>                       </weaveDependency>
>               </weaveDependencies>
>               <source>1.6</source>
>               <target>1.6</target>
>       </configuration>
> </plugin>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.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


Reply via email to