Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Operating System: other
Platform: All
-
32015
Description
I use commons-chain to implement filters and strategies. If several instances
shared the same catalog there are problems with the getCommand()
implementation, because the method itself is not thread safe and the
implementation of the map also. So there are several possibilities:
1. Add a comment to the java doc, that this implementation is not thread safe.
2. Use Hashtables instead of HashMap for the commands.
3. Offer a synchronized decorator for the CatalogBase class.