jenkinsci / lib-file-leak-detector

Java agent that detects file handle leak
http://file-leak-detector.kohsuke.org/
MIT License
237 stars 112 forks source link

Degrade gracefully on Java 19+ #145

Closed basil closed 1 year ago

basil commented 1 year ago

Without fixing #86, make it so that this module at least degrades gracefully when run on Java 19+, allowing users to use the file handle capability without using the socket capability (which does not work on Java 17+).

Testing done

Ran the unit tests on Java 11, 17, 19, 20, and 21. Also ran the module in a real Jenkins controller and verified I could successfully use the file handle capability on all of those Java versions (at least in a simple use case).