JDK-8232359 : Review type of fields in Serializable classes of java.util.concurrent
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util.concurrent
  • Affected Version: 14
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2019-10-16
  • Updated: 2021-09-27
Related Reports
Relates :  
Relates :  
Relates :  
Description
During the code review of JDK-8232230, comments were made that improvements could be made to the precision of the declared types of fields in several Serializable classes of java.util.concurrent.
Comments
If we ever envision a time when Java had intersection types, we could declare the private Condition fields in various classes as private final Condition & Serializable notEmpty; Alternatively, we could declare them private final ConditionObject notEmpty; but that would offend some software engineering purists.
16-10-2019