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

Default Functions for Lock Interface

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • None
    • core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: