JDK-8344595 : Naming incorrect for WAIT state in VirtualThread documentation
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 24
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2024-11-19
  • Updated: 2024-11-20
Related Reports
Relates :  
Description
A DESCRIPTION OF THE PROBLEM :
The state fields are called WAIT and TIMED_WAIT, but in the documentation it is named WAITED and TIMED_WAITED.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
In the java.lang.VirtualThread class

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Should be "WAIT" and "TIMED_WAIT"
ACTUAL -
Instead the documentation names it WAITED and TIMED_WAITED.

---------- BEGIN SOURCE ----------
Not needed - refer to java.lang.VirtualThread class 
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Not needed

FREQUENCY : always



Comments
It looks like related to JDK-8338383. https://github.com/openjdk/jdk/blame/master/src/java.base/share/classes/java/lang/VirtualThread.java
20-11-2024