Camilo Horovitz created MASPECTJ-108:
----------------------------------------

             Summary: 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