Skip to content

CachedIntrospectionResults should use BeanInfoFactory when introspecting implemented interfaces [SPR-16322] #20869

Closed

Description

@spring-projects-issues

Phil Webb opened SPR-16322 and commented

#18772 updated CachedIntrospectionResults to explicitly introspect implemented interfaces (for Java 8 default methods), however it directly calls Introspector.getBeanInfo and I believe it should probably try the BeanInfoFactory implementations first, in case a custom introspection method is being used.

It's also possible to skip the Serializable interface and stop when Object is reached (rather than null).


Affects: 5.0.2

Issue Links:

Referenced from: pull request #1631, and commits 45828cb

Activity

  1. spring-projects-issues commented on Dec 22, 2017

    @spring-projects-issues
    CollaboratorAuthor

    Phil Webb commented

    #1631

  2. spring-projects-issues commented on Jan 8, 2018

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    I've applied a fresh implementation of these points, with a common ClassUtils.isJavaLanguageInterface delegate shared with Conventions where not only Serializable but also Externalizable, Cloneable and Comparable are being ignored.

  3. added
    type: enhancement
    in: core
    on Jan 11, 2019
  4. added this to the 5.0.3 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions