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

innerClass constructor with generic parameters

    XMLWordPrintable

    Details

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

      Description

      Non static Inner class with generic parameters not inferred with diamond operator are not parsed.

      public class outerClass{
        public innerClass<T extends String>{
        }
      }
      
       outerClass oc = new outerClass();
       oc.new innerClass<String>();
      

      The last line of the previous code is not supported by the grammar.

        Attachments

          Activity

            People

            Assignee:
            benzonico OLD - Nicolas Peru
            Reporter:
            benzonico OLD - Nicolas Peru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: