Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ lazy val benchmark =
// "com.thesamet.scalapb" %% "scalapb-runtime-grpc" % scalapb.compiler.Version.scalapbVersion
// For grpc-java
"io.grpc" % "grpc-protobuf" % GRPC_VERSION,
"com.google.protobuf" % "protobuf-java" % "3.25.8",
"com.google.protobuf" % "protobuf-java" % "4.33.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

This update to protobuf-java version 4.33.2 is a major version bump from 3.x and is likely to cause binary incompatibility issues at runtime.

The benchmark module also depends on io.grpc:grpc-protobuf:${GRPC_VERSION} (where GRPC_VERSION is 1.77.0). The grpc-protobuf:1.77.0 library transitively depends on protobuf-java:3.25.3.

  • ABI Incompatibility: According to the Protocol Buffers documentation, the 4.x release series is not Application Binary Interface (ABI) compatible with the 3.x series.
  • Runtime Errors: Libraries compiled against protobuf-java:3.x (like grpc-protobuf:1.77.0) will not work correctly with protobuf-java:4.x and will likely fail at runtime with errors such as NoSuchMethodError or AbstractMethodError.

To resolve this, you should keep protobuf-java on a 3.x version to maintain compatibility with grpc-java:1.77.0. I recommend reverting this change.

Given this is an automated dependency update from Scala Steward, it might have incorrectly suggested this major version upgrade. It would be safer to stick to the 3.x line for protobuf-java.

        "com.google.protobuf" % "protobuf-java" % "3.25.8",

("com.chatwork" %% "scala-ulid" % "1.0.24").cross(CrossVersion.for3Use2_13)
)
// Compile / PB.targets := Seq(
Expand Down
Loading