Y
Hacker News
new
|
ask
|
show
|
jobs
by
cowlevel
29 days ago
That's a data race. The caller gets the reference
after
the constructor runs, but writes to non-final fields from the constructor might not be visible to other threads.