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

Provide a way to inject missing parameter names

XMLWordPrintable

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

      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().

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

              Created:
              Updated:
              Resolved: