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

Provide a way to inject missing parameter names

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 13
    • 13
    • tools
    • b17

    Description

      Currently, when the classfiles do not contain parameter names (neither in debug info nor in the MethodParameters attribute), the VariableElement.getSimpleName() returns a synthesized name for the parameter. The creator of the JavacTask might be able to infer a better name for the parameter, using a possibly relatively slow approaches.

      The proposal here is to allow the creator of the JavacTask to supply a provider for parameter names, that would be used on demand when the name would be requested using VariableElement.getSimpleName().

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: