Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Protobuf Runtime check require 4.27.0-dev for 4.26.1 #226

Open
ladrl opened this issue Jul 30, 2024 · 1 comment
Open

Google Protobuf Runtime check require 4.27.0-dev for 4.26.1 #226

ladrl opened this issue Jul 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ladrl
Copy link

ladrl commented Jul 30, 2024

When using your JPMS variant of com.google.protobuf there is an exception:

Caused by: com.google.protobuf.RuntimeVersion$ProtobufRuntimeVersionException: Detected mismatched Protobuf Gencode/Runtime version suffixes when loading crypto.pb.Crypto$KeyType: gencode 4.26.1, runtime 4.27.0-dev. Version suffixes must be the same.

I use the artifact com.google.protobuf:protobuf-java:4.26.1-jpms.

@sgammon
Copy link
Member

sgammon commented Sep 1, 2024

Ah, I see. You may need to ensure the generated code and runtime library match: https://protobuf.dev/support/cross-version-runtime-guarantee/

At this time, I don't think I've released a protoc binary in this repo. It is unfortunate that Protobuf devs saw fit to add this error, because here we are using a newer runtime and older gencode, which should still hold compatibility guarantees.

In any case, thank you for reporting. I will look into producing a protoc binary so that versions can line up.

@sgammon sgammon added the bug Something isn't working label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants