RFR: 8263821: Remove unused MethodTypeForm canonicalization codes

Claes Redestad redestad at openjdk.java.net
Thu Mar 18 22:59:38 UTC 2021


On Thu, 18 Mar 2021 21:37:53 GMT, Mandy Chung <mchung at openjdk.org> wrote:

>> MethodTypeForm.INTS, LONGS and RAW_RETURN are effectively unused. This removes these canonicalization codes and cleans up related code.
>
> I don't object this dead code elimination.  I don't know the design/thought when these unused canonicalization codes were defined.

This code appear to have been initially introduced with the JDK 7 implementation of JSR 292, which implemented different ways of adapting to and from generic types than the current code: https://bugs.openjdk.java.net/browse/JDK-6839872

Many uses (possibly all) were removed in https://bugs.openjdk.java.net/browse/JDK-6983728 (8-b01) where adapters were reworked. This was backported to 7, so the code I'm removing here is probably dead in all active releases.

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

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


More information about the core-libs-dev mailing list