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

Rafael Winterhalter winterhalter at openjdk.java.net
Thu Mar 18 21:08:48 UTC 2021


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.

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

Commit messages:
 - 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.

Changes: https://git.openjdk.java.net/jdk/pull/3082/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3082&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8263763
  Stats: 65 lines in 3 files changed: 60 ins; 0 del; 5 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3082.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3082/head:pull/3082

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


More information about the core-libs-dev mailing list