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

[#391] Cope with Thread::stop being unavailable in JDK 20+ #393

Merged
merged 2 commits into from
Nov 11, 2023

Commits on Nov 11, 2023

  1. [mojohaus#391] Cope with Thread::stop being unavailable in JDK 20+

    In JDK 20+, the long deprecated Thread.stop() (since JDK 1.2) has been
    removed and will throw an UnsupportedOperationException. This will be
    handled gracefully when using option 'stopUnresponsiveDaemonThreads',
    yielding a log warning "Thread.stop() is unavailable in this JRE
    version, cannot force-stop any threads" once and not trying to stop any
    further threads during the same execution.
    
    Tests and documentation have been adjusted accordingly.
    
    Closes mojohaus#391.
    kriegaex committed Nov 11, 2023
    Configuration menu
    Copy the full SHA
    a53ef9d View commit details
    Browse the repository at this point in the history
  2. [mojohaus#391] Add JDK 21 to CI build

    Because mojohaus#391 introduces special handling of the fact that in JDK 20+
    there is no more Thread::stop, we should also run the tests on JDK 21.
    kriegaex committed Nov 11, 2023
    Configuration menu
    Copy the full SHA
    3fdad70 View commit details
    Browse the repository at this point in the history