You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[error] Exception in thread "main" java.util.concurrent.TimeoutException: Future timed out after [1 second]
expectation
I would expect initialization to not deadlock. This snippet does not deadlock in scala 2.x.
The sleeps are there just to make the issue more easily reproducible, without it the issue is still present, but intermittent.
I see no reason for the initialization to deadlock: initializing an instance of A does not require object B to be initialized as case class C does not reference any fields on object B.
The text was updated successfully, but these errors were encountered:
minimized code
Compilation output
expectation
I would expect initialization to not deadlock. This snippet does not deadlock in scala 2.x.
The
sleep
s are there just to make the issue more easily reproducible, without it the issue is still present, but intermittent.I see no reason for the initialization to deadlock: initializing an instance of
A
does not requireobject B
to be initialized ascase class C
does not reference any fields onobject B
.The text was updated successfully, but these errors were encountered: