Hi bit1129,

Make sure you use same java JDK version in compile and run time. Can you tell 
us how do you compile the code?

Ibrahm

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Thursday, November 13, 2014 08:17 ص
To: dev; user
Subject: Bug 413368 – Type Cannot switch on a value of type ... Only 
convertible int values, strings or enum variables are permitted

I download the zookeeper codebase and setup the eclipse project with Ant, but I 
got the following compiling error:

Description Resource Path Location Type Cannot switch on a value of type 
AuthFastLeaderElection.ToSend.mType. Only convertible int values, strings or 
enum variables are permitted AuthFastLeaderElection.java 
/ZooKeeper/src/java/main/org/apache/zookeeper/server/quorum line 116 Java 
Problem 

I see that this is a long existing eclipse 
bug(https://bugs.eclipse.org/bugs/show_bug.cgi?id=413368), but there is no 
definite workaround there.
I just wonder to know how you guys workaround this problem when developing 
zookeeper, thanks.






[email protected]

Reply via email to