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

Undo in Stride editor with VarFrame in constructor can reach a wrong state

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.2.1
    • Component/s: Stride editor
    • Sprint:
      4.2.1

      Description

      Create a stride class "SomeClass". In the constructor, create a variable ('v'), type "int" and press enter. Now hit undo (ctrl+Z) 2 times - once for the type, and the other for the declaration itself. There will be no exception or visible error, but the method isField(FrameCanvas) in VarFrame class will be invoke after the frame is removed, thus, the condition:

      if (parentCanvas == null)

      will be true.

      Strangely, this will not happen if the variable was in a normal method rather than a constructor.

      It is not harmful, but may worth looking at to make to sure there is bigger attached.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nccb Neil Brown
                Reporter:
                amjad Amjad Altadmri
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: