-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disambiguous some method call sites when calling from Kotlin #6551
Comments
Yes, 3.x is a good place fix such ambiguities. My ideas are |
Those names sound good to me. I believe the onErrorReturn should also be renamd then. |
A few questions:
|
Yes, every class where
There is no ambiguity there as the other is called
There is no ambiguity there either.
There is no ambiguity there either.
You can rename multiple things within the same PR. |
@akarnokd Thanks for the clarification. Out of curiosity, @vanniktech was there a reason besides ambiguity that made you suggest renaming the |
…ErrorResumeWith, removing unnecessary cast from null tests, and updating Observable.onErrorResumeWith's JavaDoc to reference correct parameter name, renamed test classes since the distinctions in their names are no longer necessary.
….onErrorResumeWith(MaybeSource), renamed some of the affected unit tests, and updated JavaDoc.
@akarnokd Is there a reason I've made the change and run all the tests for this method and all of them pass. If there's no reason and it's ok with you I'd be happy to make the change since I'm in the area anyway. |
Looks like an API mistake. You can change that too (and see if other places need fixing as well). |
…ErrorResumeWith(Single), renamed an affected unit test, updated JavaDoc, and removed redundant casts.
…e<? extends T> to SingleSource<? extends T>
…able.onErrorResumeWith(Publisher), renaming some affected tests, deleted duplicated unit test that arose from being able to remove redundant casts, updated JavaDocs.
…ErrorResumeWith, removing unnecessary cast from null tests, and updating Observable.onErrorResumeWith's JavaDoc to reference correct parameter name, renamed test classes since the distinctions in their names are no longer necessary.
….onErrorResumeWith(MaybeSource), renamed some of the affected unit tests, and updated JavaDoc.
…ErrorResumeWith(Single), renamed an affected unit test, updated JavaDoc, and removed redundant casts.
…e<? extends T> to SingleSource<? extends T>
…able.onErrorResumeWith(Publisher), renaming some affected tests, deleted duplicated unit test that arose from being able to remove redundant casts, updated JavaDocs.
…from kotlin (#6551) (#6556) * #6551 Renaming Observable.onErrorResumeNext to Observable.onErrorResumeWith, removing unnecessary cast from null tests, and updating Observable.onErrorResumeWith's JavaDoc to reference correct parameter name, renamed test classes since the distinctions in their names are no longer necessary. * #6551 Renaming Maybe.onErrorResumeNext(MaybeSource) to Maybe.onErrorResumeWith(MaybeSource), renamed some of the affected unit tests, and updated JavaDoc. * #6551 Renaming Single.onErrorResumeNext(Single) to Single.onErrorResumeWith(Single), renamed an affected unit test, updated JavaDoc, and removed redundant casts. * #6551 Changing Single.onErrorResumeWith parameter from Single<? extends T> to SingleSource<? extends T> * #6551 Renaming Flowable.onErrorResumeNext(Publisher) to Flowable.onErrorResumeWith(Publisher), renaming some affected tests, deleted duplicated unit test that arose from being able to remove redundant casts, updated JavaDocs.
I vaguely remember that we already had a discussion about this but I don't know which conclusion was drawn. Observable.onErrorResumeNext is ambiguous when calling from Kotlin.
Since 3.x is a thing do we want to rename these methods. Similar to what we did with
startWith
(even though there was no type inference problem).The text was updated successfully, but these errors were encountered: