RFR: 8301721: lookup.findSpecial fails on Object method call from interface

Alan Bateman alanb at openjdk.org
Tue Jun 6 14:20:53 UTC 2023


On Mon, 5 Jun 2023 19:33:48 GMT, Mandy Chung <mchung at openjdk.org> wrote:

> Lookup.findSpecial fails on Object method call from an interface because of a bug in the implementation calling `Class::getSuperclass` on an interface which has no superclass.   The implementation should only search the method from its superclass only if it's a class.   This patch is trivial and skip the superclass search if it's an interface.

This looks right, there's no superclass to search.

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

Marked as reviewed by alanb (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/14319#pullrequestreview-1465328491


More information about the core-libs-dev mailing list