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

Mandy Chung mchung at openjdk.org
Tue Jun 6 16:23:06 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 pull request has now been integrated.

Changeset: 74dc50b7
Author:    Mandy Chung <mchung at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/74dc50b7f0b0b9440746ff329fc3324c477ae421
Stats:     80 lines in 2 files changed: 79 ins; 0 del; 1 mod

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

Reviewed-by: alanb

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

PR: https://git.openjdk.org/jdk/pull/14319


More information about the core-libs-dev mailing list