JLSv3 section 17.9 "Sleep and Yield" needs statement about observable effects removed

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 7
    • Affects Version/s: 6
    • Component/s: specification
    • None
    • rc
    • generic
    • generic
    • Verified

      Section 17.9 "Sleep and Yield" in the Java Language Specification Third Edition, has the following statement:

        "Neither a sleep for a period of zero time nor a yield operation need have observable effects."

      This precludes java.lang.Thread.yield from having any strong specification as it could be challenged as a contradiction to this statement. Effectively this statement in the JLS allows yield to be a noop and prevents it from gaining any strongly specified behavior.

      see comments section.

            Assignee:
            Alex Buckley
            Reporter:
            Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: