Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8339850

Restore the interrupt status in FileSystemPreferences.lockFile()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • 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.

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

              Created:
              Updated:
              Resolved: