Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-198

Deadlock occurs during initialization in parallel test environment.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.31
    • 2.3.32
    • engine
    • None

    Description

      I'm testing freemaker code on two SBT tests, The first code is

      val config = new Configuration(Configuration.VERSION_2_3_31)
      val d = new DefaultObjectWrapper()
      println(d.getJythonSupport)

      Another is

      val d = new DefaultObjectWrapper()
      println(d.getJythonSupport)

      When I tested them in parallel, waiting for each other happened.

      I speculate that some static initialization code has circular dependencies.
      _TemplateAPI.SAFE_OBJECT_WRAPPER-> DefaultObjectWapper.instance->DefaultObjectWrapperConfiguration->_TemplateAPI

      Attachments

        Activity

          People

            ddekany Dániel Dékány
            chaostone Tihua Duan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: