Recent updates to ClassGraph

7 views
Skip to first unread message

Luke Hutchison

unread,
Aug 25, 2018, 11:41:59 PM8/25/18
to ClassGraph-Users
Just a heads-up -- there have been quite a few resource leaks plugged recently in ClassGraph, and a lot of minor bugs fixed, including in classloading and resource reading. Please update to version 4.1.2 (the current most recent version) if you depend upon ClassGraph in an important production environment.

Also, make sure you are assigning the ScanResult in a try-with-resources block, so that any resources associated with the ScanResult are freed as soon as the ScanResult is no longer needed. You can see examples of the try-with-resources usage here: https://github.com/classgraph/classgraph/wiki/Code-examples

The good news is that ClassGraph seems to have more or less stabilized at this point, and the major bugs appear to have been fixed. The ClassGraph codebase has much better long term maintainability than FastClasspathScanner, which it evolved from. 


Reply all
Reply to author
Forward
0 new messages