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

Test Fixture -> Object Bench -> Test Fixture breaks with generics

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.5.0
    • Fix Version/s: 3.0.6
    • Component/s: TestMgr

      Description

      If I have a test fixture that includes any generics (eg ArrayList<String>), 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

          ArrayList<
      

      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.

        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: