I went through sources and found that it is the expected behavior. See the
code
<https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/compiler/java/java_helpers.cc#L161>
of
the name's capitalization.
On Tuesday, October 23, 2018 at 9:12:05 PM UTC+3, Dmitry Grankin wrote:
>
> I have a message:
>
> message Image {
>
> string link_40dp = 1;
> }
>
> After the compilation, in a Java, the field name is `link40Dp` (the first
> letter after a number is capitalized).
>
> Is it a bug or feature, that the first letter after a number is
> capitalized?
> I don't see anything about that in the official documentation.
> Are there other corner-cases like this?
>
> I am using `com.google.protobuf:protoc:3.6.1` to compile Proto messages.
>
>
>
--
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 https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.