Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8275097

Wrong span of the 'default' tag

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17, 18
    • Fix Version/s: 18
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b23

      Description

      Consider code like:
      ---
      switch (0) {
          default:
      }
      ---

      The span of the AST node representing 'default' does not cover the letters 'default', but rather ':', which is wrong.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlahoda Jan Lahoda
              Reporter:
              jlahoda Jan Lahoda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: