[
https://issues.apache.org/jira/browse/MCOMPILER-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15553082#comment-15553082
]
Hudson commented on MCOMPILER-260:
----------------------------------
SUCCESS: Integrated in Jenkins build maven-plugins #7336 (See
[https://builds.apache.org/job/maven-plugins/7336/])
[MCOMPILER-260] Incorrect <compilerArgs> behavior when multiple number <arg>'s
have the same value (rfscholte:
[http://svn.apache.org/viewvc/?view=rev&rev=1763652])
* (add) maven-compiler-plugin/src/it/MCOMPILER-260_customArguments
* (add) maven-compiler-plugin/src/it/MCOMPILER-260_customArguments/pom.xml
* (add) maven-compiler-plugin/src/it/MCOMPILER-260_customArguments/src
* (add) maven-compiler-plugin/src/it/MCOMPILER-260_customArguments/src/main
* (add) maven-compiler-plugin/src/it/MCOMPILER-260_customArguments/src/main/java
* (add)
maven-compiler-plugin/src/it/MCOMPILER-260_customArguments/src/main/java/com
* (add)
maven-compiler-plugin/src/it/MCOMPILER-260_customArguments/src/main/java/com/foo
* (add)
maven-compiler-plugin/src/it/MCOMPILER-260_customArguments/src/main/java/com/foo/MyClass.java
> Incorrect <compilerArgs> behavior when multiple number <arg>'s have the same
> value
> ----------------------------------------------------------------------------------
>
> Key: MCOMPILER-260
> URL: https://issues.apache.org/jira/browse/MCOMPILER-260
> Project: Maven Compiler Plugin
> Issue Type: Bug
> Affects Versions: 3.3
> Environment: JDK 1.8.0_45
> Maven 3.3.1
> Reporter: Anthony Vanelverdinghe
> Assignee: Robert Scholte
> Fix For: 3.6
>
>
> The following configuration:
> {code:xml}
> <compilerArgs>
> <arg>-Xmaxwarns</arg>
> <arg>7</arg>
> <arg>-Xmaxerrs</arg>
> <arg>7</arg>
> </compilerArgs>
> {code}
> always fails, because the last 7 is not passed to javac. However, changing
> any of the numbers so that they're not equal, makes it succeed. Another case
> where it may succeed, is when an additional argument is appended. For example
> the following succeeds:
> {code:xml}
> <compilerArgs>
> <arg>-Xmaxwarns</arg>
> <arg>7</arg>
> <arg>-Xmaxerrs</arg>
> <arg>7</arg>
> <arg>-Werror</arg>
> </compilerArgs>
> {code}
> However, this is not always the case. For example, the following fails:
> {code:xml}
> <compilerArgs>
> <arg>-Xmaxwarns</arg>
> <arg>7</arg>
> <arg>-source</arg>
> <arg>7</arg>
> <arg>-Werror</arg>
> </compilerArgs>
> {code}
> Also note that the numbers do not necessarily have to be adjacent, e.g. the
> following fails as well:
> {code:xml}
> <compilerArgs>
> <arg>-Xmaxwarns</arg>
> <arg>7</arg>
> <arg>-source</arg>
> <arg>1.5</arg>
> <arg>-Xmaxerrs</arg>
> <arg>7</arg>
> </compilerArgs>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)