ODF Toolkit
  1. ODF Toolkit
  2. ODFTOOLKIT-201

HashMap leads to endless loop in OdfXMLFactory.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: odfdom-0.8.7
    • Fix Version/s: None
    • Component/s: java
    • Labels:
      None
    • Environment:
      Operating System: Windows
      Platform: PC

      Description

      Load two documents concurrently may run into endless loops again and again. The reason seems to be a corruption of the HashMap mElementTypes in the Class OdfXMLFactory, which causes the call classCache.get(odfName) to infinitely loop within line 303 of HashMap.
      We will consider using ConcurrentHashMap to replace HashMap if necessary.

      BTW: setOdfElementClass and setOdfAttributeClass are not used. I think we need to improve it.

      Thanks Colin discovered and reported this bug.

      Devin

        Activity

          People

          • Assignee:
            issues
            Reporter:
            devin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development