RFR: 8182025: PropertyDescriptor ignores default methods from interfaces implemented by superclasses

Chen Liang liach at openjdk.org
Wed Apr 19 21:44:42 UTC 2023


On Wed, 19 Apr 2023 21:29:05 GMT, Archie L. Cobbs <duke at openjdk.org> wrote:

> The `Introspector` class was never updated to include `default` methods inherited from interfaces.
> 
> This patch attempts to fix that omission.

src/java.desktop/share/classes/com/sun/beans/introspect/MethodInfo.java line 46:

> 44: final class MethodInfo {
> 45: 
> 46:     static final HashSet<Class<?>> IGNORABLE_INTERFACES = new HashSet<>(6);

Suggestion:

    static final HashSet<Class<?>> IGNORABLE_INTERFACES = HashSet.newHashSet(6);

Or even better, use Set.of instead.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13544#discussion_r1171880936



More information about the client-libs-dev mailing list