Replace the use of ThreadTracker with ScopedValue in java.util.jar.JarFile

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: core-libs

      The implementation in java.util.jar.JarFile, when initializing a JarVerifier uses the jdk.internal.misc.ThreadTracker to mark the current thread as initializing a JAR verifier. This state on the current thread is then enquired in a different part of the JDK code.

      ThreadTracker was a temporary mechanism. ScopedValue has been delivered as a permanent Java SE feature in Java 25 (JDK-8352695). The JarFile implementation should move away from ThreadTracker and instead use ScopedValue in its place.

            Assignee:
            Jaikiran Pai
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: