Project: Tomcat
Bug 54974 SessionCookieConfig.setXXX methods must throw IllegalStateException when invoked after initialization phase
Reported: 2013-05-15 08:23:39 | Status: resolved fixed

According to Servlet 3.0 javadoc javax.servlet.SessionCookieConfig setter methods must throw IllegalStateException when invoked after initialization phase setComment(String) setDomain(String) setHttpOnly(boolean) setMaxAge(int) setName(String) setPath(String) setSecure(boolean) " Throws: java.lang.IllegalStateException - if the ServletContext from which this SessionCookieConfig was acquired has already been initialized "

Files changed in fix:
java/org/apache/catalina/core/ApplicationContext.java java/org/apache/catalina/core/ApplicationSessionCookieConfig.java test/org/apache/catalina/core/TestApplicationSessionCookieConfig.java