SonarQube Java
  1. SonarQube Java
  2. SONARJAVA-3

The literal "42L" should be lexed as a LONG_LITERAL instead of a INTEGER_LITERAL

    Details

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

      Description

      Java, "42L" has the type long, whereas "42" has the type int.

      It must be possible to differentiate both types based on their token types, and therefore the LONG_LITERAL type must be introduced.

        Issue Links

          Activity

          Hide
          Freddy Mallet added a comment -

          Manually tested !

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

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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: