Support unidirectional @AliasFor attribute mapping within an annotation #23834
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Original Title
Issue with AliasFor annotation upgrading from 5.1.7 to 5.2.0
Overview
I'm trying to update Spring Boot version from 2.1.5.REALEASE to 2.2.0.RELEASE and by that, my Spring Framework are getting updated.
After the update my application stop working and passing tests. The reason is because I use a library that specify a
@AliasFor
only on thevalue
field and not on both attributes. Look at the code:The
@AliasFor
documentation says since older versions that is needed to specify the annotation on both attributes that are alias of each other, but no error was thrown in older versions.The stack trace:
There is an issue or is expected?
Maybe this will break other libs with alias only in one attribute (I know this a library bug, but no error was thrown before).
Thank you.
The text was updated successfully, but these errors were encountered: