need way to test if current thread holds object lock

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.3.0
    • Component/s: core-libs
    • None
    • beta
    • generic
    • solaris_8
    • Verified

      In combination with the new assert facility it would be useful if you
      could test whether the current thread holds the lock on an object.
      Something like:

      boolean Object.lockHeld();

      would do.

            Assignee:
            Josh Bloch (Inactive)
            Reporter:
            Bill Shannon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: