ReactiveX / RxJava

RxJava – Reactive Extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.
Apache License 2.0
47.93k stars 7.6k forks source link

ThreadDeath is deprecated for removal in Java 20 #7483

Open akarnokd opened 2 years ago

akarnokd commented 2 years ago
src/main/java/io/reactivex/rxjava3/exceptions/Exceptions.java:70: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
        } else if (t instanceof ThreadDeath) {
                                ^
src/main/java/io/reactivex/rxjava3/exceptions/Exceptions.java:71: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            throw (ThreadDeath) t;
                   ^
src/test/java/io/reactivex/rxjava3/exceptions/ExceptionsTest.java:143: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
    @Test(expected = ThreadDeath.class)
                     ^
src/test/java/io/reactivex/rxjava3/exceptions/ExceptionsTest.java:164: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
                throw new ThreadDeath();
                          ^
src/test/java/io/reactivex/rxjava3/exceptions/ExceptionsTest.java:179: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
            Exceptions.throwIfFatal(new ThreadDeath());
                                        ^
src/test/java/io/reactivex/rxjava3/exceptions/ExceptionsTest.java:181: warning: [removal] ThreadDeath in java.lang has been deprecated and marked for removal
        } catch (ThreadDeath ex) {
                 ^
akarnokd commented 1 year ago

consider upgrading to a newer version of RxJava3 that has addressed this issue.

🤣🤣🤣🤣

akarnokd commented 1 year ago

What's with these out-of-blue out-of-context comments of yours?

akarnokd commented 1 year ago

I found it very funny since I'm responsible for making that "newer version of RxJava3" happen.

Mahammadnajaf commented 1 year ago

good luck