SonarQube Java
  1. SonarQube Java
  2. SONARJAVA-159

Parser: usage of BasicType should be forbidden in ResourceSpecification

    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:

      try (int a = open()) {
      }
      

      whereas should not, thus grammar should be updated.

        Activity

        Show
        Evgeny Mandrikov added a comment - Fixed in https://github.com/SonarSource/sonar-java/commit/699d010d2d0b0316e01e8bde215013b6be929ce5
        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: