Skip to content

Conversation

@lorban
Copy link
Contributor

@lorban lorban commented Oct 8, 2025

Backport of #13614 to fix #13675

Due to a limitation in the implementation of try-with-resource, we should avoid rethrowing the same exception. This PR makes a copy of the exception.

Backport of #13614 to fix #13675

Signed-off-by: Ludovic Orban <lorban@bitronix.be>
@lorban lorban requested review from joakime and sbordet October 8, 2025 11:20
@lorban lorban self-assigned this Oct 8, 2025
@lorban lorban added the Bug For general bugs on Jetty side label Oct 8, 2025
@lorban lorban moved this to 👀 In review in Jetty 12.0.29 - FROZEN Oct 8, 2025
@lorban lorban merged commit 8b10a10 into jetty-12.0.x Oct 8, 2025
10 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Jetty 12.0.29 - FROZEN Oct 8, 2025
@lorban lorban deleted the fix/12.0.x/13675-do-not-rethrow branch October 8, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug For general bugs on Jetty side

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Backport fix for #13613 from 12.1.x to 12.0.x (HttpInput#read rethrows already thrown exception)

3 participants