[Bluej-discuss] Bug in example/people
Mikkel Bundgaard
mikkelbu at ruc.dk
Mon Feb 5 13:25:27 GMT 2007
On Mon, 2007-02-05 at 13:10 +0100, Kurt Petersen wrote:
> Hi
>
> I could not get an id for the bug report system, so here goes:
>
> I do the following:
>
> Open BlueJ, example/people
>
> Create a Staff object
>
> Create a database object
>
> Invoke addPerson (no object is proposed in the list), specify "staff1"
>
> Invoke listAll() -- it works fine
>
> Remove both database1 and staff1 objects
>
> Create a new staff2 object
>
> Create a new database2 object
>
> Invoke listALL() -- no items in the list -- correct
>
> Invoke addPerson, (now staff1, that does not exist is proposed in the
> list), add staff2
staff1 is not proposed here (newest bluej version under Linux).
> Invoke listAll()
>
> Now the old staff1 AND the new staff2 is listed. Only staff2 should be
> there.
Have you remembered to clear the terminal window between the two calls
to listAll() ? (you can do this under Options in the terminal window).
Otherwise it will just append text to the window and hence it would seem
that the second call lists both.
Mikkel
--
Mikkel Bundgaard
Ph.D. student in the Programming, Logic, and Semantics group
IT University of Copenhagen
http://www.itu.dk/people/mikkelbu/
More information about the bluej-discuss
mailing list