incubator-any23-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Ansell (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ANY23-84) DefaultValidator fails to compile under Java-7
Date Thu, 10 May 2012 23:02:48 GMT

     [ https://issues.apache.org/jira/browse/ANY23-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Peter Ansell updated ANY23-84:
------------------------------

    Attachment: any23-defaultvalidator.diff

Previous patch was in the wrong direction, this patch should be correct
                
> 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
>         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

        

Mime
View raw message