On Tue, Jul 11, 2017 at 1:06 PM, Minimol Thomas <minimoltho...@gmail.com>
wrote:

> Compilation of java code generated using protobuf compiler fails giving
> the error, "code too large".
> We have an enumeration with 6000 values. And the code generated for this
> enum is causing the problem.
> I would not be able to make any changes to the enumeration as the
> protofile is owned/maintained by another team.
> The java code generated using protobuf compiler 3 for same protofile
> compiles without any issues.
> Do we have any option to continue using protobuf compiler version 2.6.1
> and solve "code too large" problem.
> Note: I am already using "option java_multiple_files = true;"
>

>
Please suggest
>
I remember we implemented something in protobuf to reduce the code size for
enums and that's probably why you don't get the error with newer version of
protocol compiler. If you have to use protobuf 2.6.1, I think you will have
to patch up protoc 2.6.1 yourself and adopt the same fix used in latest
version of protoc.


>
> Thanks,
> Minimol
>
>
> --
> 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 protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to