JDK-8323684 : TypeMirror.{getAnnotationsByType, getAnnotation} return uninformative results
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-01-12
  • Updated: 2024-01-23
  • Resolved: 2024-01-18
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 23
23 masterFixed
Related Reports
CSR :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
The javac implementation of TypeMirror.{getAnnotationsByType, getAnnotation} always return uninformative results, inconsistent with the results of getAnnotationMirrors().

This behavior looks to go back to the original implementation of those methods. Noticed during work on JDK-8042981.
Comments
Changeset: a6c0b107 Author: Joe Darcy <darcy@openjdk.org> Date: 2024-01-18 19:04:26 +0000 URL: https://git.openjdk.org/jdk/commit/a6c0b10704311c94c179136b13a4dcc244e8011f
18-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17410 Date: 2024-01-12 22:29:30 +0000
16-01-2024