Provide a way to inject missing parameter names

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: 13
    • Component/s: 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().

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

              Created:
              Updated:
              Resolved: