Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1953

EnvJavaScript is supposed to be a singleton. However EnvJavaScript.get may return multiple instances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Jena 3.17.0
    • ARQ
    • None

    Description

      EnvJavaScript is supposed to be a lazily-initialized singleton but the implementation is broken. It uses a non-volatile static field which is not lock-guarded when read. As a result , EnvJavaScript.get may instantiate multiple instances.

      Attachments

        Activity

          People

            andy Andy Seaborne
            strangepleasures Pavel Mikhailovskii
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m