Skip to content

Commit b221e84

Browse files
committed
2 parents 4fbdc5a + d539387 commit b221e84

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

java/jakarta/servlet/http/HttpSession.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,5 +229,7 @@ interface Accessor {
229229
*
230230
* @throws IllegalStateException if this method is called on an invalid session
231231
*/
232-
Accessor getAccessor();
232+
default Accessor getAccessor() {
233+
return null;
234+
}
233235
}

java/org/apache/tomcat/util/net/AbstractEndpoint.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,7 @@ public void shutdownExecutor() {
12401240
this.executor = null;
12411241
if (executor instanceof ThreadPoolExecutor) {
12421242
//this is our internal one, so we need to shut it down
1243+
@SuppressWarnings("resource")
12431244
ThreadPoolExecutor tpe = (ThreadPoolExecutor) executor;
12441245
tpe.shutdownNow();
12451246
long timeout = getExecutorTerminationTimeoutMillis();

webapps/docs/changelog.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@
124124
<code>NullPointerException</code>, if an attempt is made to use the
125125
<code>AsyncContext</code> after it has been recycled. (markt)
126126
</fix>
127+
<add>
128+
Add a default implementation for <code>HttpSession.getAccessor()</code>
129+
to align with the Servlet 6.1 API. (markt)
130+
</add>
127131
</changelog>
128132
</subsection>
129133
<subsection name="Coyote">

0 commit comments

Comments
 (0)