I am migrating my existing application from JDK 11 to JDK 17. I want to setup Protocol handler for my Tomcat server
in my JDK 11 with apache-tomcat-embed-core-9.0.65
below is the method
private void setUpProtocolHandler(Connector connector, String buffer, String absoluteKeystoreFile) {
Http11NioProtocol proto = (Http11NioProtocol) connector.getProtocolHandler();
proto.setSSLEnabled(true);
proto.setKeystoreFile(absoluteKeystoreFile);
proto.setKeystorePass(buffer);
proto.setKeystoreType(keystoreType);
proto.setKeyAlias(keystoreAlias);
}
when I upgraded to JDK 17 with apache-tomcat-embed-core-10.1.19
JAR, all below lines started giving compilation error
proto.setKeystoreFile(absoluteKeystoreFile);
proto.setKeystorePass(buffer);
proto.setKeystoreType(keystoreType);
proto.setKeyAlias(keystoreAlias);
how to fix this issue so I don’t want to change the functionality as it would trigger bigger regression