Several Jakarta Servlet methods have been deprecated for removal in Jakarta Servlet 6.0 to align with RFC 6265. In addition, the
behavior of these methods has been changed so the setters no longer have any effect, the getComment methods return null,
and the getVersion method returns 0. You should remove the usage of these methods from your application.
Deprecated Jakarta Servlet Methods:
jakarta.servlet.http.Cookie.getComment()jakarta.servlet.http.Cookie.getVersion()jakarta.servlet.http.Cookie.setComment(String)jakarta.servlet.http.Cookie.setVersion(int)jakarta.servlet.SessionCookieConfig.getComment()jakarta.servlet.SessionCookieConfig.setComment(String)For more information, see the deprecation notes in the Servlet 6.0 Javadoc.