I agree, the documentation is completely misleading. I just spent an hour 
updating to version 2.6.1, assuming maps didn't work because I had version 
2.6.0.

I suppose I should have checked here first. It would be nice if the docs 
where up to date.

On Monday, July 6, 2015 at 1:39:37 PM UTC-5, [email protected] wrote:
>
> According to the Language Guide an associative map can be used in data 
> definition https://developers.google.com/protocol-buffers/docs/proto#maps
>
> When I try using it on Windows 7 I am getting a compiler error on the left 
> angle bracket in "required map<uint32, bytes> properties = 1;"    
>
> entity.proto file content:
>
> message EntityBuffer {
> required map<uint32, bytes> properties = 1;    
> }
>
>
> Command:
> protoc --java_out=. entity.proto
>
> Error
> entity.proto:2:13: Expected field name.
>
> protoc --version returns
> libprotoc 2.6.1
>
> I am a bit puzzled. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to