You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/08/28 16:46:00 UTC
[jira] [Commented] (JENA-1953) EnvJavaScript is supposed to be a
singleton. However EnvJavaScript.get may return multiple instances
[ https://issues.apache.org/jira/browse/JENA-1953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17186675#comment-17186675 ]
ASF subversion and git services commented on JENA-1953:
-------------------------------------------------------
Commit 5c96e846a25a2386de5590ffdee3db4cb8494de0 in jena's branch refs/heads/master from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=5c96e84 ]
Merge pull request #788 from strangepleasures/JENA-1953
JENA-1953 Prevent EnvJavaScript.get from returning multiple instances
> EnvJavaScript is supposed to be a singleton. However EnvJavaScript.get may return multiple instances
> ----------------------------------------------------------------------------------------------------
>
> Key: JENA-1953
> URL: https://issues.apache.org/jira/browse/JENA-1953
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Reporter: Pavel Mikhailovskii
> Assignee: Andy Seaborne
> Priority: Minor
> Fix For: Jena 3.17.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)