Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-5

[chain] Make CatalogBase.getCommand() thread safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mail@manfred-wolff.de Manfred Wolff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: