You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "Peter Ansell (JIRA)" <ji...@apache.org> on 2012/05/10 03:10:49 UTC
[jira] [Created] (ANY23-84) DefaultValidator fails to compile under
Java-7
Peter Ansell created ANY23-84:
---------------------------------
Summary: 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
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
[jira] [Updated] (ANY23-84) DefaultValidator fails to compile under
Java-7
Posted by "Peter Ansell (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (ANY23-84) DefaultValidator fails to compile
under Java-7
Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ANY23-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13273512#comment-13273512 ]
Lewis John McGibbney commented on ANY23-84:
-------------------------------------------
I am not on java 7... anyone else able to confirm this works and whether or not we should get in into 0.7.0?
> 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
[jira] [Commented] (ANY23-84) DefaultValidator fails to compile
under Java-7
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (ANY23-84) DefaultValidator fails to compile under
Java-7
Posted by "Peter Ansell (JIRA)" <ji...@apache.org>.
[ 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
Patch to disambiguate the two private newInstance methods in DefaultValidator so that it compiles under openjdk-7
> 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
[jira] [Updated] (ANY23-84) DefaultValidator fails to compile under
Java-7
Posted by "Peter Ansell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ANY23-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Ansell updated ANY23-84:
------------------------------
Attachment: (was: any23-defaultvalidator.diff)
> 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
[jira] [Commented] (ANY23-84) DefaultValidator fails to compile
under Java-7
Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ANY23-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272221#comment-13272221 ]
Lewis John McGibbney commented on ANY23-84:
-------------------------------------------
Hi Peter would it be possible to submit a small patch for this one? Thank you for reporting.
> 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
>
> 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
[jira] [Closed] (ANY23-84) DefaultValidator fails to compile under
Java-7
Posted by "Lewis John McGibbney (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Resolved] (ANY23-84) DefaultValidator fails to compile
under Java-7
Posted by "Michele Mostarda (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ANY23-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michele Mostarda resolved ANY23-84.
-----------------------------------
Resolution: Fixed
Assignee: Michele Mostarda
Fixed @ r1337713.
> 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