Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use invoke for SslContextBuilder#endpointIdentificationAlgorithm(Stri…
…ng) (#3072) Motivation: Users reported that they can see: ``` io.servicetalk.transport.netty.internal.SslContextFactory - SslContextBuilder#endpointIdentificationAlgorithm(String) is available only starting from Netty 4.2.0.Final. Detected Netty version: 4.1.113.Final java.lang.invoke.WrongMethodTypeException: expected (SslContextBuilder,String)SslContextBuilder but found (SslContextBuilder,Object)SslContextBuilder at java.base/java.lang.invoke.Invokers.newWrongMethodTypeException(Invokers.java:523) ~[?:?] at java.base/java.lang.invoke.Invokers.checkExactType(Invokers.java:532) ~[?:?] at io.servicetalk.transport.netty.internal.SslContextFactory.setEndpointIdentificationAlgorithm(SslContextFactory.java:126) ~[servicetalk-transport-netty-internal-0.42.48.jar:0.42.48] at io.servicetalk.transport.netty.internal.SslContextFactory.<clinit>(SslContextFactory.java:92) ~[servicetalk-transport-netty-internal-0.42.48.jar:0.42.48] ``` However, this method was backported to Netty 4.1.112. See release notes: https://netty.io/news/2024/07/19/4-1-112-Final.html For some reason, `invokeExact` does not work as expected. Modifications: - Replaced `invokeExact` with `invoke`; Result: Method `SslContextBuilder#endpointIdentificationAlgorithm(String)` is detected for Netty 4.1.112.
- Loading branch information