When -XDsave-parameter-names is passed to the javac, it reads either the debug information or the new MethodParameters attribute for each method, and sets the names of the method's parameters.
This does not work properly when there are annotations attached to the parameters. A test case (runnable as a javac regression test) is attached.
This does not work properly when there are annotations attached to the parameters. A test case (runnable as a javac regression test) is attached.
- duplicates
-
JDK-8189708 class reading issue with named and annotated parameters
-
- Closed
-