SonarQube Java
  1. SonarQube Java
  2. SONARJAVA-158

Parser: usage of TypeArgument should be forbidden in some places

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Currently we able to parse:

      void method() throws MyException<TypeArgument> {
      }
      
      try {
      } catch (MyException<TypeArgument> e) {
      }
      

      whereas should not, thus grammar should be updated.

        Activity

        Show
        Evgeny Mandrikov added a comment - Fixed in https://github.com/SonarSource/sonar-java/commit/fed755cc13a1740170cdfa96199162f6bde40b11
        Hide
        Fabrice Bellingard added a comment -

        Tested.

        Show
        Fabrice Bellingard added a comment - Tested.

          People

          • Assignee:
            Evgeny Mandrikov
            Reporter:
            Evgeny Mandrikov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: