From 277e68cccc1eb8272a9495604951ef04c1947fc8 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Tue, 2 Sep 2014 13:42:41 +0200 Subject: [PATCH] =?UTF-8?q?Fixes=20#106=20adds=20the=20missing=20mention?= =?UTF-8?q?=20of=20onNext=20in=202:13=E2=80=94it=20is=20illegal=20to=20hav?= =?UTF-8?q?e=20onNext=20throw=20an=20exception.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a6835293..ad01be5d 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ public interface Subscriber { | 10 | A `Subscriber` MUST be prepared to receive an `onError` signal with or without a preceding `Subscription.request(long n)` call | | 11 | A `Subscriber` MUST make sure that all calls on its `onXXX` methods happen-before [1] the processing of the respective signals. I.e. the Subscriber must take care of properly publishing the signal to its processing logic | | 12 | `Subscriber.onSubscribe` MUST NOT be called more than once (based on object equality) | -| 13 | A failing `onComplete` invocation (e.g. throwing an exception) is a specification violation and MUST signal `onError` with `java.lang.IllegalStateException`. The cause message MUST include a reference to this rule and/or quote the full rule | +| 13 | A failing `onComplete` or `onNext` invocation (e.g. throwing an exception) is a specification violation and MUST signal `onError` with `java.lang.IllegalStateException`. The cause message MUST include a reference to this rule and/or quote the full rule | | 14 | A failing `onError` invocation (e.g. throwing an exception) is a violation of the specification. In this case the `Publisher` MUST consider a possible `Subscription` for this `Subscriber` as canceled. The `Publisher` MUST raise this error condition in a fashion that is adequate for the runtime environment (e.g. by throwing an exception, notifying a supervisor, logging, etc.). | [1] : See JMM definition of Happen-Before in section 17.4.5. on http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html