design
design copied to clipboard
[RFC 216/ PushStream] Inconsistency between JavaDoc/Spec Section 706.7.14.6 and the reference implementation
Original bug ID: BZ#228 From: Clément Delgrange <[email protected]> Reported version: R7
Comment author: Clément Delgrange <[email protected]>
Overview:
The JavaDoc of the SimplePushEventSource.publish method (section 706.7.14.6) indicates that the method throws an IllegalStateException if the source is closed. However, the reference implementation org.osgi:org.osgi.util.pushstream:1.0.0 return immediately and does not throw the exception when the source is closed.
Actual Results:
The user cannot decide which of the specification or the implementation is right. This may lead to bugs in the client code.
Expected Results:
Either the specification should remove the "throws" clause or the implementation should throw the exception.