Hi Claus,

I suspect xiangqiuzhao uses the IBM-JDK6 which has this issue, @xiangqiuzhao
is this really the case?
I used to experience exactly the same problem while using IBM-JDK, however
since moving to SUN-JDK the problem is resolved for me.

On my box if I set JAVA_HOME to IBM's JDK, then 'mvn clean compile' on
'camel-core' comes up with (same as for xiangqiuzhao):

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
compile) on project camel-core: Compilation failure
[ERROR]
\Data\eclipse-workspace\camel-trunk\camel-core\src\main\java\org\apache\camel\model\LoadBalanceDefinition.java:[134,16]
inconvertible types
[ERROR] found   : org.apache.camel.model.ProcessorDefinition<capture#945
of ?>
[ERROR] required: org.apache.camel.model.LoadBalanceDefinition

Where 'mvn -version' says:
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: P:\My Documents\dev\env\apache-maven-3.0.3\bin\..
Java version: 1.6.0, vendor: IBM Corporation
Java home: C:\Program Files\IBM\SDP75\jdk\jre
Default locale: de_CH, platform encoding: Cp1252
OS name: "windows xp", version: "5.1 build 2600 service pack 3", arch:
"x86", family: "windows"

If one would change the line 134 on LoadBalanceDefinition from:
 if (processorType instanceof LoadBalanceDefinition) {

To:
 if (LoadBalanceDefinition.class.isInstance(processorType)) {

Then the compilation would pass on this class. I didn't find anything about
this issue on http://camel.apache.org/does-camel-work-on-ibms-jdk.html

Regards, Babak
PS: actually there're more compilation issues while using IBM-JDK 

--
View this message in context: 
http://camel.465427.n5.nabble.com/why-i-building-camel2-7-2-use-maven-install-error-tp4532013p4535242.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to