RFR: 8274617: constructor and parameter annotations are not copied to the anonymous class constructor

Vicente Romero vromero at openjdk.java.net
Wed Nov 24 22:44:33 UTC 2021


Please review this PR which is about propagating constructor and parameter annotations to the anonymous class constructor. Currently we are propagating them to bridge methods which are synthetic. Propagating them to the anonymous class constructor seems sensible given that they are mandated by the spec. Please review also the related CSR,

TIA

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

Commit messages:
 - removing dead code
 - 8274617: constructor and parameter annotations are not copied to the anonymous class constructor

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

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


More information about the compiler-dev mailing list