Skip to content

Commit 2f64092

Browse files
compiler: Update maximum supported edition to EDITION_2024
gRPC doesn't do anything sensitive to the new 2024 features, but it does need a new enough libprotoc.
1 parent 51611ba commit 2f64092

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

compiler/src/java_plugin/cpp/java_plugin.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ 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
62+
return protobuf::Edition::EDITION_2024;
63+
#else
6164
return protobuf::Edition::EDITION_2023;
65+
#endif
6266
}
6367
std::vector<const protobuf::FieldDescriptor*> GetFeatureExtensions()
6468
const override {

0 commit comments

Comments
 (0)