JDK-8338700 : AttributeMapper type parameter should be bounded by Attribute
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.classfile
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-08-20
  • Updated: 2024-09-02
  • Resolved: 2024-08-23
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 b13Fixed
Related Reports
CSR :  
Description
Currently AttributeMapper's type parameter declaration is `<A>`, and it should be `<A extends Attribute<A>>`. This way, we can also remove an extra cast in BoundAttribute::readAttributes.

Courtesy to [~dlsmith] for reporting.
Comments
Changeset: a461369f Branch: master Author: Chen Liang <liach@openjdk.org> Date: 2024-08-23 15:16:44 +0000 URL: https://git.openjdk.org/jdk/commit/a461369f16a2d92ab428d14c36dd69fa5942bbc5
23-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/20668 Date: 2024-08-21 23:20:38 +0000
21-08-2024