SpringBoot 3.1.5 + OpenJDK17, below code could get parameternames normally, but as Title, just upgrade SpringBoot 3.2.0(+OpenJDK17), can't get actual parameternames but null was return.
String[] methodArgNames = ((CodeSignature) joinPoint.getSignature()).getParameterNames();
Comment From: wilkinsona
You need to compile your code with -parameters.
Comment From: hehuipu
@wilkinsona Tried as below, it is still null for getParameterNames().
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<parameters>true</parameters>
</configuration>
</plugin>
Comment From: bclozel
@hehuipu please provide a sample application we can run and we can reopen this issue.
Comment From: hehuipu
@wilkinsona @bclozel As feedback, on my local PC, I had a try about set [-parameters] in my IDE(IntellJ IDEA) as below, File | Settings | Build, Execution, Deployment | Compiler | Java Compiler and then it had been effectively changed.
By the way,
Thank you very much.