You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Balázs Németh (Jira)" <ji...@apache.org> on 2022/05/27 03:00:00 UTC

[jira] [Work started] (BEAM-14525) Unable to find Proto getters in certain cases

     [ https://issues.apache.org/jira/browse/BEAM-14525?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on BEAM-14525 started by null.
-----------------------------------
> Unable to find Proto getters in certain cases
> ---------------------------------------------
>
>                 Key: BEAM-14525
>                 URL: https://issues.apache.org/jira/browse/BEAM-14525
>             Project: Beam
>          Issue Type: Bug
>          Components: extensions-java-protobuf
>            Reporter: Balázs Németh
>            Priority: P2
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Proto property name: *item2partner_id* 
> Generated java library method names:
>  * *hasItem2PartnerId*
>  * *getItem2PartnerId*
>  * *setItem2PartnerId*
>  * *clearItem2PartnerId*
> org.apache.beam.sdk.extensions.protobuf.ProtoByteBuddyUtils generated getter name:
>  * *getItem2partnerId*
>  
> Notice the case difference of 'p'. The getter method name creation isn't aligned with protobuf standards.
> See:
>  - [https://github.com/protocolbuffers/protobuf/blob/ec79d0d328c7e6cea15cc27fbeb9b018ca289590/src/google/protobuf/compiler/java/helpers.cc#L246-L248]
>  - [https://github.com/protocolbuffers/protobuf/blob/ec79d0d328c7e6cea15cc27fbeb9b018ca289590/src/google/protobuf/compiler/java/helpers.cc#L173-L208]
>  
> According this logic anything that isn't A-Za-z makes the next character uppercase.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)