-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
servicetalk-grpc-protoc name conflict fixes
Motivation: servicetalk-grpc-protoc attempts to detect naming conflicts and appends numbers to the end of the class names to avoid the conflict. However in the event `java_outer_classname` isn't specified and the service type name conflicts with the file name a conflict is incorrectly detected which leads to forcing a `0` at the end of the service name. Detection of implicit class name isn't consistent with protobuf-java which may result in not generating code in the same file when `java_multiple_files = false`. Types (messages, enums) that start with a lower case value would fail to compile due to CLassName.bestGuess restrictions. Potential User Changes: If you are in this scenario you must regenerate code and your class names will change, requiring code changes.
- Loading branch information
1 parent
d62bfd2
commit 2f8e1b0
Showing
19 changed files
with
676 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.