Open GoogleCodeExporter opened 8 years ago
Do you have a sample proto that causes this? (ideally just a minimal example)
Original comment by marc.gravell
on 12 Feb 2010 at 1:36
message Type1 {
optional Enum1 = 1
}
enum Enum1 { CONST1 = 1; CONST2 = 2; }
Original comment by danilchenko.andrey
on 12 Feb 2010 at 1:53
OK, that is odd. I'll investigate.
Original comment by marc.gravell
on 12 Feb 2010 at 1:55
Hi Marc, thanks for your work on this project. I am also having this issue.
Is there a fix for this, or an ETA?
It works fine if you specify a default value,e.g. [default = CONST1] but I
don't have control over the proto files. Per the language's definition: "For
enums, the default value is the first value listed in the enum's type
definition."
Thanks in advance for your reply.
Original comment by zch...@gmail.com
on 22 Jul 2011 at 3:36
It's worth to mention that my enum is defined in another proto file.
Original comment by zch...@gmail.com
on 22 Jul 2011 at 3:47
Original issue reported on code.google.com by
danilchenko.andrey
on 12 Feb 2010 at 1:28