Integrated: 8336927: Missing equals and hashCode in java.lang.classfile.Annotation

Chen Liang liach at openjdk.org
Wed Jul 24 12:16:37 UTC 2024


On Tue, 23 Jul 2024 04:44:57 GMT, Chen Liang <liach at openjdk.org> wrote:

> Convert `AnnotationImpl` to a record so it comes with proper `equals` and `hashCode` implementations. This also fixes the comparison for annotation-valued annotation element values.

This pull request has now been integrated.

Changeset: 332df83e
Author:    Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/332df83e7cb1f272c08f8e4955d6abaf3f091ace
Stats:     42 lines in 2 files changed: 23 ins; 14 del; 5 mod

8336927: Missing equals and hashCode in java.lang.classfile.Annotation

Reviewed-by: asotona

-------------

PR: https://git.openjdk.org/jdk/pull/20291


More information about the core-libs-dev mailing list