Commons JXPath
  1. Commons JXPath
  2. JXPATH-152

Concurrent access on hashmap of JXPathIntrospector

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor 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.

        Activity

        pleutre created issue -
        Matt Benson made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Matt Benson [ mbenson ]
        Fix Version/s 1.4 [ 12312254 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Matt Benson
            Reporter:
            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

                Development