AnnotationBeanNameGenerator
issuing warnings about value()
declaration explicitly aliasing
#34317
Labels
status: waiting-for-triage
An issue we've not yet triaged or decided on
Assume an annotation that declares a
value()
attribute explicitly aliasing an attribute other than@Component(value = "…")
.If that annotation gets used with a set value (
@MyAnnotation("foo")
), I now see a warning:This should not be issued if the
value()
attribute is explicitly aliased to some other attribute as@Component
'svalue
. Also, the phrasing of "convention-based stereotype names" in combination with@Component
lead me to believe it's about the bean name stereotypically being derived from the class name (which made it particularly puzzling as the warning only appears with a value set, which would not trigger that convention). It turns out this term is actually referring to the default aliasing convention of the annotation attributes (the@MyAnnotation.value()
conventionally being considered a redeclaration of@Component.value()
). I wonder if the message's wording could be adapted to clarify this.The text was updated successfully, but these errors were encountered: