Skip to content

Do not consider all @Component instances as @Configuration candidates [SPR-10609] #15238

Closed

Description

@spring-projects-issues

Phil Webb opened SPR-10609 and commented

Any @Component is currently considered as a lite configuration class option [1]. It would probably make more sense to restrict lite configuration classes to only those containing @Bean methods.

[1] https://github.com/SpringSource/spring-framework/blob/v3.2.3.RELEASE/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassUtils.java#L103


Affects: 3.2.3

Sub-tasks:

Issue Links:

Activity

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