Java
  1. Java
  2. SONARJAVA-158

Parser: usage of TypeArgument should be forbidden in some places

    Details

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

      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
        OLD - Evgeny Mandrikov added a comment - Fixed in https://github.com/SonarSource/sonar-java/commit/fed755cc13a1740170cdfa96199162f6bde40b11
        Hide
        OLD - Fabrice Bellingard added a comment -

        Tested.

        Show
        OLD - Fabrice Bellingard added a comment - Tested.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: