JDK-8339115 : Rename TypeKind enum constants to follow code style
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-08-27
  • Updated: 2024-09-05
  • Resolved: 2024-08-30
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 24
24 b14Fixed
Related Reports
CSR :  
Duplicate :  
Description
`java.lang.classfile.TypeKind`'s enum constants are named like `IntType`, in upper camel case, which is used for class names. It should be named in upper snake case like `INT`, and the "type" suffix can be dropped.

Also improve the API specification of TypeKind, that it is the data types JVM operates on, and link to JVMS.
Comments
Changeset: 25e03b52 Branch: master Author: Chen Liang <liach@openjdk.org> Date: 2024-08-30 17:28:28 +0000 URL: https://git.openjdk.org/jdk/commit/25e03b52094f46f89f2fe8f20e7e5622928add5f
30-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20737 Date: 2024-08-27 22:15:17 +0000
27-08-2024