Skip to content

Annotation based bean creation fails with GsonBuilder [SPR-8522] #13166

Closed
@spring-projects-issues

Description

@spring-projects-issues

Greg Nieman opened SPR-8522 and commented

Creation of a GsonBuilder using @Bean fails with java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: dateFormat. Rolling back to 3.0.5 the same code works. The exception occurs in the addOrUpdatePropertyDescriptor method of the ExtendedBeanInfo class at line 230 when it attempts to set the indexedReadMethod, which IIRC is a null value.

Attached is a small sample that illustrates this. The pom is set so you can toggle back and forth between 3.1 and 3.0.5 to see the behavior.


Affects: 3.1 M2

Attachments:

Issue Links:

1 votes, 2 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions