[infinispan-issues] [JBoss JIRA] (ISPN-2837) Infinispan fails to compile

Shadow Creeper (JIRA) jira-events at lists.jboss.org
Tue Feb 19 16:18:56 EST 2013


    [ https://issues.jboss.org/browse/ISPN-2837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755222#comment-12755222 ] 

Shadow Creeper commented on ISPN-2837:
--------------------------------------

Hmm... This may only be an issue with Sun (Oracle?) JDK v1.6.0_26?

I just tried openjdk v1.6.0_24 (older?) and it compiled without my above patch.

Depending on your definition of "newer", maybe. I do not consider updating to Java7 or Java8 as a valid fix. But updating to a newer version of Java6 may be a valid fix.

Can anybody explain why this is? Or at least confirm that there is a bug in the Sun/Oracle jdk?
                
> Infinispan fails to compile
> ---------------------------
>
>                 Key: ISPN-2837
>                 URL: https://issues.jboss.org/browse/ISPN-2837
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core API
>    Affects Versions: 5.2.0.CR3, 5.2.0.Final, 5.2.1.Final
>         Environment: $ mvn --version
> Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
> Maven home: /home/me/bin/apache-maven-3.0.3
> Java version: 1.6.0_26, vendor: Sun Microsystems Inc.
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.2.0-4-amd64", arch: "amd64", family: "unix"
> $ /usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin/java -version
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> $ uname -a
> Linux myhost 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux
>            Reporter: Shadow Creeper
>            Assignee: Mircea Markus
>              Labels: build, compile, errors, failure, maven, mvn
>
> The latest version of Infinispan which compiles for me is "5.2.0.CR2" all since then fail with the following errors building infinispan-core:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project infinispan-core: Compilation failure: Compilation failure:
> [ERROR] /home/me/projects/infinispan-git/core/src/main/java/org/infinispan/jmx/annotations/ManagedAttribute.java:[48,40] incompatible types
> [ERROR] found   : org.infinispan.jmx.annotations.DataType
> [ERROR] required: org.infinispan.jmx.annotations.DataType
> [ERROR] /home/me/projects/infinispan-git/core/src/main/java/org/infinispan/jmx/annotations/ManagedAttribute.java:[50,49] incompatible types
> [ERROR] found   : org.infinispan.jmx.annotations.DisplayType
> [ERROR] required: org.infinispan.jmx.annotations.DisplayType
> [ERROR] /home/me/projects/infinispan-git/core/src/main/java/org/infinispan/jmx/annotations/ManagedAttribute.java:[52,61] incompatible types
> [ERROR] found   : org.infinispan.jmx.annotations.MeasurementType
> [ERROR] required: org.infinispan.jmx.annotations.MeasurementType
> [ERROR] /home/me/projects/infinispan-git/core/src/main/java/org/infinispan/jmx/annotations/ManagedAttribute.java:[54,31] incompatible types
> [ERROR] found   : org.infinispan.jmx.annotations.Units
> [ERROR] required: org.infinispan.jmx.annotations.Units
> [ERROR] /home/me/projects/infinispan-git/core/src/main/java/org/infinispan/jmx/annotations/ManagedAttribute.java:[48,40] incompatible types
> [ERROR] found   : org.infinispan.jmx.annotations.DataType
> [ERROR] required: org.infinispan.jmx.annotations.DataType
> [ERROR] /home/me/projects/infinispan-git/core/src/main/java/org/infinispan/jmx/annotations/ManagedAttribute.java:[50,49] incompatible types
> [ERROR] found   : org.infinispan.jmx.annotations.DisplayType
> [ERROR] required: org.infinispan.jmx.annotations.DisplayType
> [ERROR] /home/me/projects/infinispan-git/core/src/main/java/org/infinispan/jmx/annotations/ManagedAttribute.java:[52,61] incompatible types
> [ERROR] found   : org.infinispan.jmx.annotations.MeasurementType
> [ERROR] required: org.infinispan.jmx.annotations.MeasurementType
> [ERROR] /home/me/projects/infinispan-git/core/src/main/java/org/infinispan/jmx/annotations/ManagedAttribute.java:[54,31] incompatible types
> [ERROR] found   : org.infinispan.jmx.annotations.Units
> [ERROR] required: org.infinispan.jmx.annotations.Units

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list