You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "Lewis John McGibbney (JIRA)" <ji...@apache.org> on 2012/06/25 18:55:44 UTC
[jira] [Closed] (ANY23-84) DefaultValidator fails to compile under
Java-7
[ https://issues.apache.org/jira/browse/ANY23-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lewis John McGibbney closed ANY23-84.
-------------------------------------
Bulk close for 0.7.0-incubating release
> 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