This was reported by Shai. The runner failed with an exception:
The problem is that this is impossible because the code around JUnit4.java:809 looks like this:
and the contract on Guava's EventBus states that:
I wrote a simple snippet of code that does it in a loop and indeed, two threads can appear in the critical section at once. This is not reproducible on Hotspot and only appears to be the problem on J9/1.7/Windows (J9 1.6 works fine).
I'll provide a workaround in the runner (an explicit monitor seems to be working) but this is some serious J9 issue.
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Fix Version/s||5.0 [ 12321663 ]|
|Resolution||Fixed [ 1 ]|
|Fix Version/s||4.4 [ 12324323 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|