-
Bug
-
Resolution: Fixed
-
P4
-
6
-
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.
"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.
- relates to
-
JDK-6416721 (spec thread) Fix Thread.yield() javadoc
-
- Closed
-
-
JDK-6484465 JLS3 contradicts the API specification (and RI) concerning Thread.getState method
-
- Closed
-