Skip to content

Commit 21d6c71

Browse files
authored
compiler: Update java_plugin.cpp to support Edition 2026 (grpc#12931)
1 parent d54c8c9 commit 21d6c71

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

compiler/src/java_plugin/cpp/java_plugin.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ class JavaGrpcGenerator : public protobuf::compiler::CodeGenerator {
5858
return protobuf::Edition::EDITION_PROTO2;
5959
}
6060
protobuf::Edition GetMaximumEdition() const override {
61-
#if GOOGLE_PROTOBUF_VERSION >= 6032000
61+
#if GOOGLE_PROTOBUF_VERSION >= 6036000
62+
return protobuf::Edition::EDITION_2026;
63+
#elif GOOGLE_PROTOBUF_VERSION >= 6032000
6264
return protobuf::Edition::EDITION_2024;
6365
#else
6466
return protobuf::Edition::EDITION_2023;

0 commit comments

Comments
 (0)