Hi

Apache Jenkins is reporting errors on Camel trunk on windows
https://builds.apache.org/job/Camel.trunk.fulltest.windows/11/

Its a compilation error in the model. We have seen this java generics
issues before on compiling to AIX, HP-UX, IBM JDKs and whatnot in the
past. Also sometimes it was a bug in the JDK version itself, so by
upgrading the JDK it would fix that.

On my XP Box I could not reproduce the compilation error on trunk.
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: E:\maven\bin\..
Java version: 1.6.0_18, vendor: Sun Microsystems Inc.
Java home: C:\jdk1.6.0_18\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"


I was not able to find details on Jenkins which windows and JDK
version was used.
Its a big PITA that Jenkins do not log this in the console, so you
have it easily available.


Anyone on a Windows box, could you try to compile camel-core from
trunk on your system.
To see if you have this issue as well?


The fix is often to have an explicit redundant type cast in the code,
to "help" the compiler.
We usually added a code comment in the code, that this type cast is
needed due to compilation issues on other platforms.




Caused by: org.apache.maven.plugin.CompilationFailureException:
Compilation failure
\hudson\hudson-slave\workspace\Camel.trunk.fulltest.windows\camel-trunk\camel-core\src\main\java\org\apache\camel\model\LoadBalanceDefinition.java:[134,16]
inconvertible types
found   : org.apache.camel.model.ProcessorDefinition<capture#632 of ?>
required: org.apache.camel.model.LoadBalanceDefinition

        at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)


-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to