Skip to content
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

ThreadDeath is deprecated for removal in Java 20 #7483

Open
akarnokd opened this issue Nov 7, 2022 · 4 comments
Open

ThreadDeath is deprecated for removal in Java 20 #7483

akarnokd opened this issue Nov 7, 2022 · 4 comments
Assignees
Milestone

Comments

@akarnokd
Copy link
Member

akarnokd commented Nov 7, 2022

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 akarnokd added this to the 3.1-support milestone Nov 7, 2022
@akarnokd akarnokd self-assigned this Mar 28, 2023
@akarnokd
Copy link
Member Author

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

🤣🤣🤣🤣

@akarnokd
Copy link
Member Author

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

@akarnokd
Copy link
Member Author

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

@Mahammadnajaf
Copy link

good luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants