Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
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.