Uploaded image for project: 'Commons JXPath'
  1. Commons JXPath
  2. JXPATH-152

Concurrent access on hashmap of JXPathIntrospector

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Labels:
      None
    • Environment:

      Java5, Windows/AIX

      Description

      JXPathIntrospector.registerDynamicClass method can be called in static part of classes.
      If two classes A & B try to registerDynamicClass in the same time a concurrent access exception can append on hashmap of JXPathIntrospector.

      Replace hashmap by concurrent hashmap or synchronized access to these hashmaps.

        Attachments

          Activity

            People

            • Assignee:
              mbenson Matt Benson
              Reporter:
              pleutre pleutre
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified