Restore the interrupt status in FileSystemPreferences.lockFile()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 24
    • Component/s: core-libs
    • b18

      My colleague Sorin Basca reports:

      java.util.prefs.FileSystemPreferences catches and handles an InterruptedException and fails to restore the interrupt status here:

      https://github.com/openjdk/jdk/blob/64a79d898637e9255e6c1133dd684e272d84b95c/src/java.prefs/unix/classes/java/util/prefs/FileSystemPreferences.java#L959-L961

      It should call `Thread.currentThread().interrupt();` to restore the interrupt status.

            Assignee:
            Liam Miller-Cushon
            Reporter:
            Liam Miller-Cushon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: