[#1862] [3.0] Support for JDK 25 scoped values#2485
[#1862] [3.0] Support for JDK 25 scoped values#2485lprimak wants to merge 11 commits intoapache:3.xfrom
Conversation
…Local Allows for graceful fallback to ThreadLocal if something goes wrong
bmarwell
left a comment
There was a problem hiding this comment.
Some MR-JAR hints (can create a PR to this branch if you like).
But in general: Does it work with a utility class like this? If so, this would be great for migration to Scoped Values :)
|
@bmarwell I have refactored the code into interfaces, like you suggested. Thank you! |
|
@boris-petrov Can you please review this please? |
|
I haven't looked in details at the implementation but wouldn't it be better if there were a couple of new classes like |
|
Thanks for the review, @boris-petrov The main issue here is that ScopedValues is not really a polymorphism and shoehorning strategy pattern only made things worse. |
|
So it's great then! Do you think it would be easy/possible to back-port this to Shiro 2.x? |
|
Possible... but thing like that are "enterprise feature" IMHO |
|
@bmarwell you are the only reviewer left :) |
…Local
Allows for graceful fallback to ThreadLocal if something goes wrong
Following this checklist to help us incorporate your contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a GitHub issue. Your pull request should address just this issue, without pulling in other changes.
[#XXX] - Fixes bug in SessionManager,where you replace
#XXXwith the appropriate GitHub issue. Best practiceis to use the GitHub issue title in the pull request title and in the first line of the commit message.
fixes #XXXif merging the PR should close a related issue.mvn verifyto make sure basic checks pass. A more thorough check will be performed on your pull request automatically.Trivial changes like typos do not require a GitHub issue (javadoc, comments...).
In this case, just format the pull request title like
[DOC] - Add javadoc in SessionManager.If this is your first contribution, you have to read the Contribution Guidelines
If your pull request is about ~20 lines of code you don't need to sign an Individual Contributor License Agreement
if you are unsure please ask on the developers list.
To make clear that you license your contribution under the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.