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

S2127 should not report an issue when the symbol is unknown

    XMLWordPrintable

    Details

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

      Description

      We do not correctly handle unknown symbols in S2127, resulting in FP when the semantic is incomplete.

        public static double getDouble() {
          return Double.longBitsToDouble(Unknown.getSomething());
        }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quentin.jaquier Quentin Jaquier
              Reporter:
              quentin.jaquier Quentin Jaquier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: