shitala099 / microemu

Automatically exported from code.google.com/p/microemu
0 stars 0 forks source link

The rebuild method of RecordEnumerationImpl fail to iterate until the end if the filter returns false #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

The rebuild method of org.microemu.util.RecordEnumerationImlp does NOT work 
properly if a filter is provided and if this filter matches a false value. 
The rebuild method will fetch the same record from 
recordStoreImpl.getRecord(recordId) because once the filter matches a false 
value the recordId variable won't be any more updated.

Attached is a patch that fixes the issue.

Original issue reported on code.google.com by tmoreira...@gmail.com on 6 Jan 2010 at 2:42

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in trunk (future version 3.0)

Original comment by bar...@gmail.com on 6 Jan 2010 at 10:03

GoogleCodeExporter commented 8 years ago
I had to modify this patch. The problem was incrementing recordId in the 
beginning of
while loop.

Original comment by bar...@gmail.com on 6 Jan 2010 at 11:06

GoogleCodeExporter commented 8 years ago
Thanks, it is working fine now!

Original comment by tmoreira...@gmail.com on 6 Jan 2010 at 4:53

GoogleCodeExporter commented 8 years ago

Original comment by bar...@gmail.com on 6 Jan 2010 at 4:57