JDK-8258810 : Improve enum traits
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-22
  • Updated: 2021-01-19
  • Resolved: 2021-01-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b05Fixed
Related Reports
Relates :  
Description
EnumIterationTraits contains some unused stuff.  It could als be expanded to provide more common utilities.  In particular, there are numerous static_casts that could be centralized under meaningful names in the traits class.

Also, JDK-8257466 added range bound accessors to EnumRange, but neglected to account for an empty range.

Comments
Changeset: 2255ab76 Author: Kim Barrett <kbarrett@openjdk.org> Date: 2021-01-12 03:38:54 +0000 URL: https://git.openjdk.java.net/jdk/commit/2255ab76
12-01-2021