Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8007720

Names are not load correctly for method parameters if the parameters have annotations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 8
    • tools
    • b01

      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.

            jlahoda Jan Lahoda
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: