Java code generated from large Enums will not compile

14 views
Skip to first unread message

Ernesto Cid

unread,
Nov 18, 2019, 5:04:32 PM11/18/19
to Protocol Buffers
I'm working on a project where we have a very large proto buffer enum with more than 10.000 values. When I generate the java code from this enum using protoc 3.6.1 it won't compile because the code is too large (for example, the generated forNumber method will exceed the 64kb size that Java allows for methods). I wonder if anyone here faced a similar problem and if there is any solution for it?

Thanks in advance for any help.
Reply all
Reply to author
Forward
0 new messages