Repository navigation
core: Suppress removal warning in NoopSslSession - #13188
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 13, 2026 15:40
AgraVator
approved these changes
Nov 16, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SSLSession.getPeerCertificateChain()andjavax.security.cert.X509Certificateare 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: