Integrated: 8263763: Synthetic constructor parameters of enum are not considered for annotation indices

Rafael Winterhalter winterhalter at openjdk.java.net
Mon Apr 12 21:05:10 UTC 2021


On Thu, 18 Mar 2021 21:03:20 GMT, Rafael Winterhalter <winterhalter at openjdk.org> wrote:

> 8263763: The constructor of an enumeration prefixes with two synthetic arguments for constant name and ordinal index. For this reason, the constructor annotations need to be shifted two indices to the right, such that the annotation indices match with the parameter indices.

This pull request has now been integrated.

Changeset: 9dd96257
Author:    Rafael Winterhalter <winterhalter at openjdk.org>
Committer: Joe Darcy <darcy at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/9dd96257
Stats:     73 lines in 4 files changed: 64 ins; 0 del; 9 mod

8263763: Synthetic constructor parameters of enum are not considered for annotation indices

Reviewed-by: darcy, jfranck

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

PR: https://git.openjdk.java.net/jdk/pull/3082


More information about the core-libs-dev mailing list