RFR: 8274617: constructor and parameter annotations are not copied to the anonymous class constructor [v5]
liach
duke at openjdk.java.net
Sun Dec 19 01:57:22 UTC 2021
On Mon, 13 Dec 2021 20:45:50 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> 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
>
> Vicente Romero has updated the pull request incrementally with one additional commit since the last revision:
>
> additional tests
Can these annotations be detected properly by reflection at runtime (when, say, compiled with `-parameters` flag to avoid a few other existing issues)?
-------------
PR: https://git.openjdk.java.net/jdk/pull/6548
More information about the compiler-dev
mailing list