Skip to content

core: Suppress removal warning in NoopSslSession - #13188

Open
fmeum wants to merge 1 commit into
grpc:masterfrom
fmeum:noop-ssl-session-removal
Open

fmeum wants to merge 1 commit into
grpc:masterfrom
fmeum:noop-ssl-session-removal

Conversation

@fmeum

@fmeum fmeum commented Nov 13, 2026

Copy link
Copy Markdown

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

This branch has not been deployed

No deployments
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.

1 participant