gapic-generator-java: LRO parsing can match wrong response or metadata type #1707
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
This issue happens in Parser.parseLro(): if only shortname is provided, and has ambiguity with message types from other protos, the parser currently naively matches on first encountered type, without throwing exception or indicating conflict.
sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/protoparser/Parser.java
Lines 833 to 841 in cc5724f
Example proto to reproduce:
DescriptorProtos.GeneratedCodeInfo.Annotation
DescriptorProtos.SourceCodeInfo.Location
The text was updated successfully, but these errors were encountered: