Re: Strange Eclipse compiler error.

2009-09-10 Thread Brice Figureau

Hi,

I found the culprit and it is not Protobuf. 
Our project uses groovy, and as such I installed the Groovy Eclipse
plugin which incidently contains an Eclipse JDT patch. Removing this
patch makes everything compile normally.
I filed a bug on the groovy bug tracker.

Sorry for the noise,

On Thu, 2009-09-10 at 16:53 -0700, Kenton Varda wrote:
> Doesn't make any sense to me.  Let me know if you find a solution.
> 
> On Mon, Sep 7, 2009 at 8:16 AM, Brice Figureau  +...@daysofwonder.com> wrote:
> 
> Hmm, more information on the issue below:
> 
> On Mon, 2009-09-07 at 16:52 +0200, Brice Figureau wrote:
> > I'm using eclipse (3.5) on a large project using protobuf
> v2.1.0, and
> > I'm encountering tons of strange Eclipse java compiler error
> on every
> > protobuf java generated code.
> >
> > All the errors looks like this one:
> >
> > The method mergeFrom(Message) is ambiguous for the type
> > GeneratedMessage.Builder
> 
> 
> I created a new java eclipse project and added only the
> generated java
> files, and they do compile fine, so the issue is certainly the
> compilation of the combination of those generated files and my
> other
> java files...
> 
> But I'd appreciate any help...


-- 
Brice Figureau
My Blog: http://www.masterzen.fr/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: Strange Eclipse compiler error.

2009-09-10 Thread Kenton Varda
Doesn't make any sense to me.  Let me know if you find a solution.

On Mon, Sep 7, 2009 at 8:16 AM, Brice Figureau

> wrote:

>
> Hmm, more information on the issue below:
>
> On Mon, 2009-09-07 at 16:52 +0200, Brice Figureau wrote:
> > I'm using eclipse (3.5) on a large project using protobuf v2.1.0, and
> > I'm encountering tons of strange Eclipse java compiler error on every
> > protobuf java generated code.
> >
> > All the errors looks like this one:
> >
> > The method mergeFrom(Message) is ambiguous for the type
> > GeneratedMessage.Builder
>
> I created a new java eclipse project and added only the generated java
> files, and they do compile fine, so the issue is certainly the
> compilation of the combination of those generated files and my other
> java files...
>
> But I'd appreciate any help...
> --
> Brice Figureau
> My Blog: http://www.masterzen.fr/
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: Strange Eclipse compiler error.

2009-09-07 Thread Brice Figureau

Hmm, more information on the issue below:

On Mon, 2009-09-07 at 16:52 +0200, Brice Figureau wrote:
> I'm using eclipse (3.5) on a large project using protobuf v2.1.0, and
> I'm encountering tons of strange Eclipse java compiler error on every
> protobuf java generated code.
> 
> All the errors looks like this one:
> 
> The method mergeFrom(Message) is ambiguous for the type
> GeneratedMessage.Builder

I created a new java eclipse project and added only the generated java
files, and they do compile fine, so the issue is certainly the
compilation of the combination of those generated files and my other
java files...

But I'd appreciate any help...
-- 
Brice Figureau
My Blog: http://www.masterzen.fr/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Strange Eclipse compiler error.

2009-09-07 Thread Brice Figureau

Hi,

I'm using eclipse (3.5) on a large project using protobuf v2.1.0, and
I'm encountering tons of strange Eclipse java compiler error on every
protobuf java generated code.

All the errors looks like this one:

The method mergeFrom(Message) is ambiguous for the type
GeneratedMessage.Builder

or:
The method mergeDelimitedFrom(InputStream, ExtensionRegistry) is
ambiguous for the type Bot.PBBot.Builder

I see this error for every parseFrom, and or Builder mergeFrom of every
Message.

Now, what gets more strange is that if I compile manually those files
with an ant javac task, they do compile fine, so it's an Eclipse
compiler issue.

I tested with 2.2.0, and have the same issue.

It looks like Issue 115 to me, but reversed:
http://code.google.com/p/protobuf/issues/detail?id=115

Any idea on how to solve the issue?
-- 
Brice Figureau
My Blog: http://www.masterzen.fr/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---