Skip to content

core: Suppress removal warning in NoopSslSession - #13188

Merged
AgraVator merged 1 commit into
grpc:masterfrom
fmeum:noop-ssl-session-removal
Nov 16, 2026
Merged

AgraVator merged 1 commit into
grpc:masterfrom
fmeum:noop-ssl-session-removal

Conversation

@fmeum

@fmeum fmeum commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

SSLSession.getPeerCertificateChain() and javax.security.cert.X509Certificate are deprecated for removal. javac reports this separately from regular deprecation, so the existing @SuppressWarnings("deprecation") doesn't cover it and compiling against a recent JDK prints:

Note: core/src/main/java/io/grpc/internal/NoopSslSession.java uses or overrides a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.

SSLSession.getPeerCertificateChain() and javax.security.cert.X509Certificate
are deprecated for removal, which javac reports separately from regular
deprecation when compiling against a recent JDK.
@fmeum
fmeum marked this pull request as ready for review November 13, 2026 15:40
@AgraVator AgraVator added the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Nov 16, 2026
@grpc-kokoro grpc-kokoro removed the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Nov 16, 2026
@AgraVator
AgraVator merged commit b64ee04 into grpc:master Nov 16, 2026
17 of 18 checks passed
copybara-service Bot pushed a commit to bazelbuild/bazel that referenced this pull request Nov 17, 2026
Fixes the Bazel-side warnings printed by `bazel build --config=llvm //src:bazel-dev` on a clean output base:

* Replace the `--cpu`-based `config_setting`s in `//src/conditions`, which trigger a deprecation warning (`select() on cpu is deprecated`), with the existing constraint-based ones. Bazel CI doesn't use `--cpu` anymore.
* Set `legacy_create_init = 0` on Bazel's own `py_binary` targets (`//src:create_embedded_tools`, `//tools/build_defs/proguard:wrapper_private`) to address the rules_python implicit `__init__.py` deprecation.
* Drop the explicit `jar` packaging from Maven coordinates (`Assuming ... should be interpreted as ...`) and declare `known_contributing_modules` for the `maven` repo. `maven_install.json` only changes its input hash.
* Only pass the `java_proto_library` for the service to `java_grpc_library`, as multiple `deps` are deprecated. The longrunning protos are covered transitively.
* Exclude incubator modules from the "all modules" embedded JDK, which jlink warns about (`Using incubator modules: jdk.incubator.vector`) and Bazel doesn't use.

Remaining warnings are fixed elsewhere and will be picked up by follow-up dependency updates:

* c-ares: #32649 (drop c-ares), bazelbuild/bazel-central-registry#11756
* zstd-jni: bazelbuild/bazel-central-registry#11757 (zstd-jni 1.5.7-26)
* protobuf: deprecated `GetEnum`/`GetRepeatedEnum` calls are fixed in protobuf 37.0
* rules_pkg: bazelbuild/rules_pkg#1097
* gRPC: grpc/grpc#43933, grpc/grpc-java#13188
* Mirror: #32646

Closes #32651

COPYBARA_INTEGRATE_REVIEW=#32651 from fmeum:fix-build-warnings 5f5e9c3
PiperOrigin-RevId: 1023592606
Change-Id: Ia04594ff9c771f596c291bf0d4785915124c6a5a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants