I'm actually able to compile just fine with the 1.7.0_51 jdk on eclipse. But, 
to be fair, I do remember some time back having this issue. I think eclipse was 
just not pointing to the right jdk, but again I can't remember for sure.

-Flavio

On 13 Nov 2014, at 12:39, bit1...@163.com wrote:

> Thanks Flavio for the reply. 
> The details is that I am trying to compile the zookeeper codebase from trunk 
> http://svn.apache.org/repos/asf/zookeeper/trunk/
> 
> And I am using Java1.7.0_51.
> 
> 
> 
> bit1...@163.com
> 
> ???????? FPJ
> ?????????? 2014-11-13 20:22
> ???????? user@zookeeper.apache.org
> ?????? RE: Bug 413368 ?C Type Cannot switch on a value of type ... Only 
> convertible int values, strings or enum variables are permitted
> What are you trying to compile? Is it trunk or distro? What version of java
> are you using?
> 
> -Flavio
> 
>> -----Original Message-----
>> From: bit1...@163.com [mailto:bit1...@163.com]
>> Sent: 13 November 2014 12:02
>> To: d...@zookeeper.apache.org; user@zookeeper.apache.org
>> Subject: ????: Bug 413368 ?C Type Cannot switch on a value of type ...
> Only
>> convertible int values, strings or enum variables are permitted
>> 
>> No one likes to answer this question?
>> 
>> 
>> 
>> bit1...@163.com
>> 
>> ???????? bit1...@163.com
>> ?????????? 2014-11-13 16:16
>> ???????? dev; user
>> ?????? Bug 413368 ?C 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.
>> 
>> 
>> 
>> 
>> 
>> 
>> bit1...@163.com
> 

Reply via email to