[BLUEJ-346] Code Pad can redefine Object Bench variables.
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.
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 3.1.6