github classgraph/classgraph classgraph-4.6.4

latest releases: classgraph-4.8.172, classgraph-4.8.171, classgraph-4.8.170...
5 years ago

Fix a bug that could prevent temporary files from being deleted on ScanResult::close on Windows (#288, thanks to @torstenkuhnhenne for the detailed bug report).

Problem background: The JRE cannot delete files on Windows if the files are mmap'd, and mmap'd files cannot be un-mmap'd until their corresponding MappedByteBuffer instance is garbage collected. For temporary files to be deleted, ClassGraph has to drop all MappedByteBuffer references and then call System.gc() to force the MappedByteBuffer instances to be garbage collected (to un-mmap the files) before tempFile.delete() can be called on temporary files.

Don't miss a new classgraph release

NewReleases is sending notifications on new releases.