-
Bug
-
Resolution: Done
-
Critical
-
3.6.2.Final, 4.0.0.Beta6
-
None
-
None
-
-
Workaround Exists
-
Dear JBossDevelopers,
I have found a naughty bug in SseBroadcasterImpl: when notifyOnCloseListeners is called it removes wrong sink from the queue, namely it removes always the first one due to GenericType.equals implementation which is:
boolean result = this == obj; if (!result && obj instanceof GenericType) { GenericType<?> that = (GenericType)obj; return this.type.equals(that.type);//always true in case SseEventSink } else { return result; }
This case is reproduced in the following test project: [link](https://github.com/Ingvord/resteasy-sse-bug-report). It also provides a workaround.
- is related to
-
RESTEASY-2160 Improve SseBroadcasterTest#testErrorListeners test
- Resolved