Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-1271

Bracket matching doesn't understand comments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 4.2.1
    • Fix Version/s: 4.2.2
    • Component/s: None
    • Sprint:
      BlueJ 4.2.2

      Description

      The code for finding a matching bracket in the editor is too naive. It scans for matching brackets and while it knows to skip string/char literals, it doesn't account for comments. So if the user puts an unterminated string/char literal or a mismatched bracket in a comment, this will be counted as part of the matching. (Add "// {" in your code and BlueJ will match the bracket.)

        Attachments

          Activity

            People

            • Assignee:
              pwt Pierre Weill-Tessier
              Reporter:
              nccb Neil Brown
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: