[
https://issues.apache.org/jira/browse/ANY23-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274222#comment-13274222
]
Hudson commented on ANY23-84:
-----------------------------
Integrated in Any23-trunk #199 (See
[https://builds.apache.org/job/Any23-trunk/199/])
Fixed 1.7 compatibility. Related to #ANY23-84 (Revision 1337713)
Result = UNSTABLE
mostarda :
Files :
*
/incubator/any23/trunk/core/src/main/java/org/apache/any23/validator/DefaultValidator.java
> DefaultValidator fails to compile under Java-7
> ----------------------------------------------
>
> Key: ANY23-84
> URL: https://issues.apache.org/jira/browse/ANY23-84
> Project: Apache Any23
> Issue Type: Bug
> Components: core
> Affects Versions: 0.7.0
> Environment: $ mvn -v
> Apache Maven 3.0.4
> Maven home: /usr/share/maven
> Java version: 1.7.0_03, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
> Default locale: en_AU, platform encoding: UTF-8
> OS name: "linux", version: "3.2.0-24-generic", arch: "amd64", family: "unix"
> $ java -version
> java version "1.7.0_03"
> OpenJDK Runtime Environment (IcedTea7 2.1.1pre) (7~u3-2.1.1~pre1-1ubuntu2)
> OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)
> Ubuntu-12.04
> Reporter: Peter Ansell
> Assignee: Michele Mostarda
> Attachments: any23-defaultvalidator.diff
>
>
> The two newInstance methods in DefaultValidator have the same erasure as
> shown by the following java7 compile error
> [ERROR]
> /home/peter/svnrepos/any23/core/src/main/java/org/apache/any23/validator/DefaultValidator.java:[134,17]
> error: name clash: newInstance(Class<? extends Rule>) and
> newInstance(Class<? extends Fix>) have the same erasure
> Fix would be to rename the methods to distinguish them, as they are private
> methods that are not part of the API so there are no repercussions outside of
> that class.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira