Protobuf: Proto Java code generator generates uncompilable code when Java keywords are used as field names.

Created on 20 Oct 2015  路  4Comments  路  Source: protocolbuffers/protobuf

Most helpful comment

hi, I am wondering if there's a problematic use case of: what if you are given .proto files from some service you don't control?

All 4 comments

This is affecting me too. Any workaround or fix forthcoming?

I suggest updating your .proto definition and avoid any Java keywords. We can add a workaround in protoc, but what that does is simply replacing keywords like interface with interface_, and you certainly can come up with a better name than interface_.

hi, I am wondering if there's a problematic use case of: what if you are given .proto files from some service you don't control?

I think this issue should be fixed.

Was this page helpful?
0 / 5 - 0 ratings