Skip to content

Commit 00ce273

Browse files
authored
Bump grpc-java to 1.81.0 to silence Java 25 Unsafe deprecation warning (#873)
* Bump grpc-java to 1.81.0 to silence Java 25 Unsafe deprecation warning Bumps io.grpc:grpc-netty-shaded (and grpc-protobuf, grpc-stub, protoc-gen-grpc-java) from 1.75.0 to 1.81.0, which pulls in shaded Netty 4.1.132. The previous shaded Netty (4.1.118 inside grpc-java 1.75.0) called the now terminally-deprecated sun.misc.Unsafe::allocateMemory, producing noisy warnings on JDK 23+ (and especially JDK 25). Netty 4.1.124+ routes direct-buffer allocation away from the deprecated method, so the warning goes away without any code or launch-argument changes. grpc-java 1.81.0 still targets Java 8 bytecode (animal-sniffer is still on the dependency tree), so this preserves Java 8 compatibility for the worker. * Bump protobuf-java and protoc to 3.25.8 Bumps protobuf-java (and the matching protoc artifact used by protobuf-maven-plugin) from 3.25.5 to 3.25.8. Same minor (3.25.x), patch-level fixes only, fully compatible with grpc-protobuf 1.81.0 which declares 3.25.5 as the minimum.
1 parent 280ec1d commit 00ce273

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<jupiter.version>5.9.1</jupiter.version>
2323
<mockito-core.version>4.11.0</mockito-core.version>
2424
<appinsights.agents.version>3.7.6</appinsights.agents.version>
25-
<grpc.version>1.75.0</grpc.version>
25+
<grpc.version>1.81.0</grpc.version>
2626
</properties>
2727
<licenses>
2828
<license>
@@ -75,7 +75,7 @@
7575
<dependency>
7676
<groupId>com.google.protobuf</groupId>
7777
<artifactId>protobuf-java</artifactId>
78-
<version>3.25.5</version>
78+
<version>3.25.8</version>
7979
</dependency>
8080
<dependency>
8181
<groupId>io.grpc</groupId>
@@ -147,7 +147,7 @@
147147
<artifactId>protobuf-maven-plugin</artifactId>
148148
<version>0.5.1</version>
149149
<configuration>
150-
<protocArtifact>com.google.protobuf:protoc:3.25.5:exe:${os.detected.classifier}</protocArtifact>
150+
<protocArtifact>com.google.protobuf:protoc:3.25.8:exe:${os.detected.classifier}</protocArtifact>
151151
<pluginId>grpc-java</pluginId>
152152
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
153153
<protoSourceRoot>${basedir}/src/main/azure-functions-language-worker-protobuf/src/proto</protoSourceRoot>

0 commit comments

Comments
 (0)