RFR: 8320575: generic type information lost on mandated parameters [v7]

Vicente Romero vromero at openjdk.org
Wed Dec 13 22:13:39 UTC 2023


On Tue, 12 Dec 2023 22:21:29 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> As the core reflection code will encounter record classes compiled before and after the javac code generation change, if the old behavior can be triggered in javac using `--release $OLD`/`--source $OLD`, that would be helpful to include as part of the testing.

I don't think that the old behavior can be triggered using --release $OLD as fix for https://bugs.openjdk.org/browse/JDK-8292275 was applicable to all targets / sources. But I think I can create a .jcod file with a compact constructor of a record class for which the parameters are not mandated and check that the generic information is correctly retrieved.

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

PR Comment: https://git.openjdk.org/jdk/pull/17070#issuecomment-1854778693


More information about the core-libs-dev mailing list