SonarQube Java
  1. SonarQube Java
  2. SONARJAVA-2

The literal "42.0" should be lexed as a DOUBLE_LITERAL instead of a FLOATING_LITERAL

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: Squid
    • Labels:
      None
    • Number of attachments :
      0

      Description

      In Java, "42.0" has the type double, whereas "42.0f" has the type float.

      It must be possible to differentiate both types based on their token types, and therefore the DOUBLE_LITERAL type must be introduced, and the FLOATING_LITERAL may have to be renamed into FLOAT_LITERAL.

        Issue Links

          Activity

          Hide
          Freddy Mallet added a comment -

          Manually tested !

          Show
          Freddy Mallet added a comment - Manually tested !
          Hide
          Evgeny Mandrikov added a comment -

          Our integration tests cover this feature as we able to parse same set of files.

          Show
          Evgeny Mandrikov added a comment - Our integration tests cover this feature as we able to parse same set of files.

            People

            • Assignee:
              Evgeny Mandrikov
              Reporter:
              Dinesh Bolkensteyn
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: