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

Avoid `UnsupportedOperationException` in `ZipPath#toFile` with JDK 17 #169

Closed centic9 closed 4 months ago

centic9 commented 4 months ago

This changes the list of kept open files from "File" to "Path" because File.toPath() can lead to UnsupportOperationException in some cases.

Additionally this enhances output and JavaDoc in a few places.

Fixes #160

Testing done

### Submitter checklist
- [x] Make sure you are opening from a **topic/feature/bugfix branch** (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue