RFR: 8284871: Use covariant overrides for the resolveConstantDesc(Lookup) method in sub‑interfaces of java.lang.constant.ConstantDesc

ExE Boss duke at openjdk.org
Fri Mar 31 15:17:16 UTC 2023


On Sat, 11 Mar 2023 04:59:07 GMT, Chen Liang <liach at openjdk.org> wrote:

> Also remove redundant casts to avoid javac warnings.

src/java.base/share/classes/java/lang/constant/MethodTypeDesc.java line 197:

> 195:      * @apiNote {@linkplain MethodTypeDesc} can represent method type descriptors
> 196:      * that are not representable by {@linkplain MethodType}, such as methods with
> 197:      * more than 255 parameter slots, so attempts to resolve these may result in errors.

Should this also be added to `MethodHandleDesc::resolveConstantDesc(Lookup)`?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/12986#discussion_r1154601360


More information about the core-libs-dev mailing list