Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-201

HashMap leads to endless loop in OdfXMLFactory.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • odfdom-0.8.7
    • None
    • java
    • None
    • Operating System: Windows
      Platform: PC
    • 359

    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

      Attachments

        Activity

          People

            issues@odfdom.odftoolkit.org issues
            devin@odftoolkit.org devin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: