Skip to content

support proto3 field presence for codegen (backport v1.30.0) - #7058

Merged
dapengzhang0 merged 2 commits into
grpc:v1.30.xfrom
dapengzhang0:v1.30.x
May 22, 2020
Merged

support proto3 field presence for codegen (backport v1.30.0)#7058
dapengzhang0 merged 2 commits into
grpc:v1.30.xfrom
dapengzhang0:v1.30.x

Conversation

@dapengzhang0

Copy link
Copy Markdown
Contributor

This is backport of #7052 and #7054 .

Version 3.12.0 is needed for the feature of support for proto3 field presence grpc#7051
@dapengzhang0
dapengzhang0 requested a review from ejona86 May 21, 2020 22:50

@ejona86 ejona86 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remember to not squash the commits

@dapengzhang0
dapengzhang0 merged commit bd1c256 into grpc:v1.30.x May 22, 2020
@dapengzhang0
dapengzhang0 deleted the v1.30.x branch May 22, 2020 00:59
creamsoup added a commit that referenced this pull request May 26, 2020
older version can't compile new proto3 field presence changes (#7058)

```
> Task :grpc-compiler:compileJava_pluginExecutableJava_pluginCpp FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.6.2/userguide/command_line_interface.html#sec:command_line_warnings
67 actionable tasks: 21 executed, 46 up-to-date
<-------------> 0% WAITING
> Resolve files of :grpc-android-interop-testing:debugCompileClasspath > Transf
> Transforming artifact annotations.jar (com.google.android:annotations:4.1.1.4
> Resolve files of :grpc-android-interop-testing:debugCompileClasspath > Transf
> :grpc-android:verifyReleaseResources
/home/jihuncho/git/grpc-java/compiler/src/java_plugin/cpp/java_plugin.cpp:46:12: error: ‘uint64_t JavaGrpcGenerator::GetSupportedFeatures() const’ marked ‘override’, but does not override
   46 |   uint64_t GetSupportedFeatures() const override {
      |            ^~~~~~~~~~~~~~~~~~~~
/home/jihuncho/git/grpc-java/compiler/src/java_plugin/cpp/java_plugin.cpp: In member function ‘uint64_t JavaGrpcGenerator::GetSupportedFeatures() const’:
/home/jihuncho/git/grpc-java/compiler/src/java_plugin/cpp/java_plugin.cpp:47:12: error: ‘FEATURE_PROTO3_OPTIONAL’ was not declared in this scope
   47 |     return FEATURE_PROTO3_OPTIONAL;
      |            ^~~~~~~~~~~~~~~~~~~~~~~
```
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants