You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2024/03/22 01:09:48 UTC
(tomcat) branch main updated: Add default implementation to align with Servlet 6.1
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new fd25948538 Add default implementation to align with Servlet 6.1
fd25948538 is described below
commit fd25948538d424f66befde14605d75c9a221d320
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Mar 22 01:09:32 2024 +0000
Add default implementation to align with Servlet 6.1
---
java/jakarta/servlet/http/HttpSession.java | 4 +++-
webapps/docs/changelog.xml | 4 ++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/java/jakarta/servlet/http/HttpSession.java b/java/jakarta/servlet/http/HttpSession.java
index ccd055c8c5..963e4e4d97 100644
--- a/java/jakarta/servlet/http/HttpSession.java
+++ b/java/jakarta/servlet/http/HttpSession.java
@@ -229,5 +229,7 @@ public interface HttpSession {
*
* @throws IllegalStateException if this method is called on an invalid session
*/
- Accessor getAccessor();
+ default Accessor getAccessor() {
+ return null;
+ }
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 78bc1f2619..341c3a6596 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -124,6 +124,10 @@
<code>NullPointerException</code>, if an attempt is made to use the
<code>AsyncContext</code> after it has been recycled. (markt)
</fix>
+ <add>
+ Add a default implementation for <code>HttpSession.getAccessor()</code>
+ to align with the Servlet 6.1 API. (markt)
+ </add>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org