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

Substitution of Type parameters should be handled correctly when used in combination of wildcards

    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>  {
        void foo(List<? extends T> list)  {
        }
      
        void bar() {
          new A<String>().foo(new List<String>()); // substitution of T by String should be handled correctly
        }
      }
      

        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: