[Bluej-discuss] Bug in example/people

Cecilia Vargas C.A.Vargas at kent.ac.uk
Mon Feb 5 13:46:25 GMT 2007


Hi Kurt,

I just tried to recreate the bug, but I could not. I suggest you clear 
the terminal window before re-invoking listAll( ). Perhaps the staff1 
you are seeing is from the previous call.

Look at tip-of-the-week #17 in the bluej.org website for how to 
automatically clear the terminal before method calls: 
http://www.bluej.org/help/archive.html#tip17
You can see the entire list of these tips from the bluej.org homepage 
==> help & info.

If the problem persists, you can send me the .java files you are running 
and I can look into the problem.

Hope this helps,
Cecilia

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
>
> Invoke listAll()
>
> Now the old staff1 AND the new staff2 is listed. Only staff2 should be
> there.
>
>
> Kurt
>  
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>   


More information about the bluej-discuss mailing list