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
Scala 2.9.1 does not seem to reproduce this behavior, however I post it since I couldn't find a clearly related issue, and since I don't know if the bug is fixed in 2.9.1 or just hidden by a changed timing condition.
Notes
while my 2.8.1 does not reproduce SI-4565, if I move the Response trait and Ok to the top-level out of Work class, everything seems to be fine
running the CalcActors serially also fixes the problem
The text was updated successfully, but these errors were encountered:
@paulp said:
The equals method for Ok is reference equality.
It is inordinately unlikely that there is a bug in reference equality. You have vars, mutable state, and actors doing something in this code; we don't have the resources to debug that sort of thing. If you want to reopen this, please try to define the issue more precisely.
Robin Palotai (ron) said:
Ok. I succeeded with a stripped down version, but then I noticed that in Scala 2.8.2 and 2.9.1 the discovered race condition is already fixed (the object constructor needed synchronization for storing the singleton).
When running the following code, the first Ok == Ok check is sometimes false (maybe 3 out of 10), the following ones are true as expected.
Scala 2.9.1 does not seem to reproduce this behavior, however I post it since I couldn't find a clearly related issue, and since I don't know if the bug is fixed in 2.9.1 or just hidden by a changed timing condition.
Notes
The text was updated successfully, but these errors were encountered: