Skip to content

Commit 6ccd065

Browse files
compiler: Update maximum supported edition to EDITION_2026 (#12945)
Update the maximum supported edition in the Java gRPC compiler plugin to EDITION_2026 when compiling against Protobuf version 7.35.0 (v35.0) or later. cc @JasonLunn
1 parent 21d6c71 commit 6ccd065

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/src/java_plugin/cpp/java_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class JavaGrpcGenerator : public protobuf::compiler::CodeGenerator {
5858
return protobuf::Edition::EDITION_PROTO2;
5959
}
6060
protobuf::Edition GetMaximumEdition() const override {
61-
#if GOOGLE_PROTOBUF_VERSION >= 6036000
61+
#if GOOGLE_PROTOBUF_VERSION >= 7035000
6262
return protobuf::Edition::EDITION_2026;
6363
#elif GOOGLE_PROTOBUF_VERSION >= 6032000
6464
return protobuf::Edition::EDITION_2024;

0 commit comments

Comments
 (0)