You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Flavio Junqueira <fp...@yahoo.com.INVALID> on 2014/11/13 15:23:07 UTC
Re: Bug 413368 – Type Cannot switch on a value of type ... Only convertible int values, strings or enum variables are permitted
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, bit1129@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.
>
>
>
> bit1129@163.com
>
> 发件人: FPJ
> 发送时间: 2014-11-13 20:22
> 收件人: user@zookeeper.apache.org
> 主题: RE: Bug 413368 – 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: bit1129@163.com [mailto:bit1129@163.com]
>> Sent: 13 November 2014 12:02
>> To: dev@zookeeper.apache.org; user@zookeeper.apache.org
>> Subject: 回复: Bug 413368 – 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?
>>
>>
>>
>> bit1129@163.com
>>
>> 发件人: bit1129@163.com
>> 发送时间: 2014-11-13 16:16
>> 收件人: dev; user
>> 主题: 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.
>>
>>
>>
>>
>>
>>
>> bit1129@163.com
>