[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cursors/Iterators



On Wed, 23 Aug 2000, Robert Colquhoun wrote:
> At 02:33 PM 8/22/00 +0200, Falko Braeutigam wrote:
> >On Tue, 22 Aug 2000, Robert Colquhoun wrote:
> > > At 05:16 PM 8/21/00 +0200, Falko Braeutigam wrote:
> > > >On Mon, 21 Aug 2000, Robert Colquhoun wrote:
> > > > > Hi,
> > > > >
> > > > > This is a beginner question - i am having real trouble getting some
> > > > kind of
> > > > > cursor to work, in the class below every time next() is called it 
> > returns
> > > > > the first element from the iterator, not progressing to the second 
> > element
> > > > > and never reaching the end of the list.
> > > >Did you mark the next() method to be an update method? If not, the 
> > changes of
> > > >the iterator (i.next()) are not persistent.
> > >
> > > I added /*update*/ to the interface PRICES which PRICESImpl 
> > implements.  Is
> > > that the right place, or should the update comment be in PRICESImpl itself?
> >No, you did it totally right. Still, I don't know what's going wrong with your
> >code :( Maybe it's a problem of the DxLib classes. Can you try Java2
> >collections instead of DxLib?
> 
> Replaced the previous PRICESImpl with the one below which uses Hashtables 
> instead and it works perfectly!
Great!

> I will go back and double check everything.
DxLib is not perfect but as we started to make ozone with jdk1.0 there was no
collection library available so we had to do our own. If you find the bug in
there please report it to me. 

Thanks,

Falko
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com