[BLUEJ-134] Test Fixture -> Object Bench -> Test Fixture breaks with generics
If I have a test fixture that includes any generics (eg ArrayList), and I load it to the object bench and then immediately save it back to the test fixture, even without doing anything in the meantime, the instance variable declarations are mostly cleared?totally nongeneric variables are cleared entirely, and all that remains of the generics variables are the class name and a left bracket, eg {noformat} ArrayList< {noformat} Oddly enough, if you open the test class after this happens, the change is undoable; I just have to open the class and hit Ctrl-Z repeatedly, and all the missing stuff reappears.
The problem spot appears to be relatively early in the process, as if I do TF->OB, then create an object in the object bench, then do OB->TF, the above problem happens and the newly-created object doesn't have an instance variable or any code in setUp.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.0.6