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

FN in S5840 with back references inside disjunction

    XMLWordPrintable

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Rules
    • Labels:

      Description

      The back references in (.)|\1 and (?<name>.)|\k<name> can never match, but this is currently not caught.

      This can be fixed by keeping track of the currently defined capturing group in a set that is saved, restored and finally merged when visiting disjunctions.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastian.hungerecker Sebastian Hungerecker
              Reporter:
              sebastian.hungerecker Sebastian Hungerecker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: