Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Bean definitions with several constructors and constructor arguments cannot be instantiated #1015

Closed

Description

@bclozel

The BeanInstanceExecutableSupplier uses the resolved factory method or constructor method information to instantiate to find the Executable to call for instantiation.

If no info is available at the bean definition level, we're trying to detect a suitable constructor - we're currently applying a simple resolution algorithm that detects a single constructor or a constructor annotated with @Autowired.

Short of reimplementing org.springframework.beans.factory.support.ConstructorResolver, we should improve this to support provided constructor arguments.

Activity

  1. added this to the 0.11.0 milestone on Sep 7, 2021
  2. self-assigned this
    on Sep 7, 2021
  3. changed the title [-]Bean definitions with constructor arguments cannot be instantiated[/-] [+]Bean definitions with several constructors and constructor arguments cannot be instantiated[/+] on Sep 8, 2021
  4. added a commit that references this issue on Sep 8, 2021
    40137b7
  5. bclozel commented on Sep 8, 2021

    @bclozel
    ContributorAuthor

    Closed with 40137b7

  6. added a commit that references this issue on Sep 28, 2021
    96a681a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions