RFR: 8366101: Replace the use of ThreadTracker with ScopedValue in java.util.jar.JarFile [v2]
Jaikiran Pai
jpai at openjdk.org
Tue Dec 2 16:56:20 UTC 2025
On Tue, 2 Dec 2025 16:34:00 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Jaikiran Pai has updated the pull request incrementally with one additional commit since the last revision:
>>
>> use Runnable() instead of CallableOp
>
> src/java.base/share/classes/java/util/jar/JarFile.java line 1043:
>
>> 1041: // the JAR verifier
>> 1042: ScopedValue.where(IN_VERIFIER_INIT, true).call(
>> 1043: new ScopedValue.CallableOp<Void, Exception>() {
>
> ScopedValue.Carrier defines a run method so you could use `ScopedValue.where(IN_VERIFIER_INIT, true).run(..)` here and avoid the exception handling.
I hadn't spotted that API, much cleaner indeed. I've updated the PR with that change.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28609#discussion_r2582048687
More information about the security-dev
mailing list