JDK-8288227 : Refactor annotation implementation to use pattern matching for instanceof
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-06-10
  • Updated: 2022-06-13
  • Resolved: 2022-06-10
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 20 Other
20 masterFixed jdk-cpuFixed
Related Reports
Relates :  
Description
There are many instanceof checks in the sun.reflection.annotation code; these would be improved by using pattern matching for instanceof.
Comments
Changeset: aaa89714 Author: Joe Darcy <darcy@openjdk.org> Date: 2022-06-10 17:05:17 +0000 URL: https://git.openjdk.org/jdk/commit/aaa897148ab2669e06531521221f0551335b3d1f
10-06-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/9129 Date: 2022-06-10 16:15:36 +0000
10-06-2022