bennyxqg / bulk-loader

Automatically exported from code.google.com/p/bulk-loader
0 stars 0 forks source link

removeAll deletes loader name; whichLoaderHasItem fails #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load items into a BulkLoader
2. Use removeAll to reset the BulkLoader
3. Reload items into the BulkLoader
4. Use whichLoaderHasItem to find an item
5. The returned BulkLoader will be null because removeAll deleted the
loader name from _allLoaders and is not searched

What is the expected output? What do you see instead?
Maybe there should be an additional removeLoader method that would perform
removeAll plus deleting the name from _allLoaders. removeAll should just
remove all loader items and not touch the loader, i.e. removeAll should not
delete the loader name?

What version of the product are you using? On what operating system?
BulkLoader.as r187 (br.com.stimuli.loading.BulkLoader.as)

Please provide any additional information below.
I came across then when "recycling" BulkLoader's.

Original issue reported on code.google.com by Josh.Log...@osumc.edu on 14 Apr 2008 at 2:01

GoogleCodeExporter commented 9 years ago
Hi Josh.

This is fixed in trunk (rev 190).

Now, removeAll will allow you to reuse an instance (you must call clear 
splicilty to
make that instance invalid)

Thanks
Arthur

Original comment by debert on 15 Apr 2008 at 3:38

GoogleCodeExporter commented 9 years ago
Excellent. Thanks!

Original comment by Josh.Log...@osumc.edu on 15 Apr 2008 at 12:36