Integrated: 8320575: generic type information lost on mandated parameters of record's compact constructors
Vicente Romero
vromero at openjdk.org
Fri May 24 20:48:16 UTC 2024
On Mon, 11 Dec 2023 23:33:16 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> Reflection is not retrieving generic type information for mandated parameters. This is a known issue which has been explicitly stated in the API of some reflection methods. Fix for [JDK-8292275](https://bugs.openjdk.org/browse/JDK-8292275) made the parameters of compact constructors of record classes `mandated` as specified in the spec. But this implied that users that previous to this change could retrieve the generic type of parameters of compact constructors now they can't anymore. The proposed fix is to try to retrieve generic type information for mandated parameters if available plus changing the spec of the related reflection methods.
>
> TIA
This pull request has now been integrated.
Changeset: 7bf1989f
Author: Vicente Romero <vromero at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/7bf1989f59695c3d08b4bd116fb4c022cf9661f4
Stats: 405 lines in 3 files changed: 376 ins; 6 del; 23 mod
8320575: generic type information lost on mandated parameters of record's compact constructors
Co-authored-by: Chen Liang <liach at openjdk.org>
Reviewed-by: jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/17070
More information about the core-libs-dev
mailing list