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

Semantic: resolve parameterized methods

    Details

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

      Description

      class A {
        <T> T foo(T ref) {
          return ref;
        }
      
        String bar() {
          String s = foo(""); // return type of this invocation should be "String", not "T", and reference to the usage of method "foo" should be correctly handled
          return s;
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michael.gumowski Michael Gumowski
                Reporter:
                michael.gumowski Michael Gumowski
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: