Skip to content

NPE while try to use abstract beans with optional properties [SPR-14474] #19043

Closed

Description

@spring-projects-issues

Alexander opened SPR-14474 and commented

Since spring 4.3 there is NPE when i try to use abstract beans with optional properties.
NPE was thrown when trying to create bean with parent abstract bean without optional property.

Pls, see attached files (complete example present at github)


Affects: 4.3 GA, 4.3.1

Reference URL: https://github.com/chabapok/springBugDemo

Attachments:

Issue Links:

Referenced from: commits 938b56c, fe17f8d

Activity

  1. spring-projects-issues commented on Jul 20, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    This turns out to be a gap in our new BeanWrapperImpl.setBeanInstance method: It does not expose the given object as a root object for exception message purposes. Fixed in master now; to be backported to 4.3.2 later today.

  2. added
    type: bug
    in: core
    on Jan 11, 2019
  3. added this to the 4.3.2 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: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions