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

Code Pad can redefine Object Bench variables.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Won't Do
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.1.6
    • Component/s: CodePad

      Description

      Define a class with a method. For example, a Foo class with a toString method.

      Right-click on the class and create an object in the Object Bench.

      Open the Code Pad and invoke the toString method:
      foo1.toString()

      (So far so good. I like this feature.)

      But in the Code Pad, you can redefine foo1, even change its type:
      String foo1;

      I guess Object Bench variables exist in a scope surrounding the Code Pad, so variables created in the Code Pad are local to it and can override variables from the Object Bench. But I kind of see the Object Bench and Code Pad as being two views of the same set of variables.

        Attachments

          Activity

            People

            • Assignee:
              davmac Davin McCall
              Reporter:
              external External via trac
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: