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

Default Functions for Lock Interface

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      The java.util.concurrent.locks.Lock interface should have several default methods added to make writing lock code cleaner and less error prone. I have attached a file with the implemented functions.

      These functions call the appropriate lock method, execute the Runnable or Callable in a try block and call unlock in a finally block.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nreynold Nathan Reynolds
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: