-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Closed
Labels
Milestone
Description
Version 2.1.8 - December 27, 2017 (Maven)
Warning! Behavior change regarding handling illegal calls with null in Processors and Subjects.
The Reactive Streams specification mandates that calling onNext and onError with null should
result in an immediate NullPointerException thrown from these methods. Unfortunately, this requirement was overlooked (it resulted in calls to onError with NullPointerException which meant the Processor/Subject variants entered their terminal state).
If, for some reason, the original behavior is required, one has to call onError with a NullPointerException explicitly:
PublishSubject<Integer> ps = PublishSubject.create();
TestObserver<Integer> to = ps.test();
// ps.onNext(null); // doesn't work anymore
ps.onError(new NullPointerException());
to.assertFailure(NullPointerException.class);API changes
- Pull 5741: API to get distinct
Workers from someSchedulers. - Pull 5734: Add
RxJavaPlugins.unwrapRunnableto help with RxJava-internal wrappers inSchedulers. - Pull 5753: Add
retry(times, predicate)toSingle&Completableand verify behavior across them andMaybe.
Documentation changes
- Pull 5746: Improve wording and links in
package-infos + remove unused imports. - Pull 5745: Add/update
Observablemarbles 11/28. - Commit 53d5a235: Fix JavaDoc link in observables/package-info.
- Pull 5755: Add marbles for
Observable(12/06). - Pull 5756: Improve
autoConnect()JavaDoc + add its marble. - Pull 5758: Add a couple of
@seetoCompletable. - Pull 5759: Marble additions and updates (12/11)
- Pull 5773: Improve JavaDoc of
retryWhen()operators. - Pull 5778: Improve
BehaviorProcessorJavaDoc.
Bugfixes
- Pull 5747: Fix
TrampolineSchedulernot callingRxJavaPlugins.onSchedule(), add tests for all schedulers. - Pull 5748: Check
runnable == nullin*Scheduler.schedule*(). - Pull 5761: Fix timed exact
buffer()calling cancel unnecessarily. - Pull 5760:
Subject/FlowableProcessorNPE fixes, addUnicastProcessorTCK.
Other
vanniktech, artem-zinnatullin, khovanskiy, ShaishavGandhi and ascrutae