Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-1149

Incorrect resolution of overloaded variadic methods

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 3.6
    • Component/s: Semantic
    • Labels:
      None

      Description

      private void variadic(String first, Object... objects) {}
      private void variadic(String... strings) {}

      variadic("", "", ""); // should resolve to 'String...' and not 'String, Object...'

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              massimo.paladin Massimo PALADIN
              Reporter:
              samuel.mercier Samuel Mercier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: