Yes, according to the specification, there is no guarantee of what you are calling safe initialization in example 4.
You may want to take a look at this presentation: https://sites.google.com/site/aboutmale/techblog/javafinal (there is also a link to a talk by my former colleague Vladimir Sitnikov, but that talk is in Russian language).
On Wed, Sep 26, 2018, 10:56 <[hidden email]> wrote:
Send Concurrency-interest mailing list submissions to
Concurrency-interest mailing list
|Free forum by Nabble||Edit this page|