Log warning for usage of argNames
attribute in AspectJ annotations
#30055
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Since the introduction of the
java.lang.reflect.Parameter
API in Java 8, theargNames
attributes in AspectJ annotations (such as@Before
,@Around
, etc.) are no longer necessary.Instead, the Spring team suggests that code be compiled with the
javac
-parameters
flag to make the parameter names available in the compiled byte code.In light of that recommendation, we should log a warning any time we detect an explicit
argNames
attribute declaration in an AspectJ annotation.The text was updated successfully, but these errors were encountered: