Skip to content

Doc: @Component bean auto naming working differently for two capital letter start [SPR-14272] #18844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue May 14, 2016 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: task A general task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Heartin opened SPR-14272 and commented

If my class name start with two capital letters and I annotate with @Component, the auto generated name starts with capital letter. Else it starts with small letter.

JJwriterComp gives JJwriterComp
JaaJwriterComp gives jaaJwriterComp

I could not find any reference for this difference in any documentation.


Backported to: 4.2.7

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

We follow the rules of java.beans.Introspector.decapitalize here. I'll clarify this in our reference documentation.

@spring-projects-issues spring-projects-issues added status: backported An issue that has been backported to maintenance branches in: core Issues in core modules (aop, beans, core, context, expression) type: task A general task labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.3 GA milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: task A general task
Projects
None yet
Development

No branches or pull requests

2 participants