[Bluej-discuss] One suggestion

Ian Barland ibarland at radford.edu
Sat May 19 13:56:45 BST 2007


> BlueJ records
> almost all action ex-cluding the adding a reference obtained from a dialog
> window into object bench. After such action the test class is uncompilable
> and students (or teacher) have to add relevant statements into source code
> by hand.
> 
While on the topic, the another bug in this area is if a student defines the
same variable twice: it works interactively, yet the generated test-case
won't compile ("variable already declared").  I usually see this happen if
a student does a 'move-test-fixture-to-bench' twice, or moves two test
fixtures which shared some variable names.

(A fix to this problem might also resolve using the same variable-name when
declaring a variable in Codepad which already exists on the bench, resulting
in one shadowing the other (which seems unexpected, to me).)

--Ian



More information about the bluej-discuss mailing list