github classgraph/classgraph classgraph-4.1.0

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

Bugfixes for class loading and closing of resources; small API changes.

  • Bugfixes:

    • Defined a new ClassGraphClassLoader that is more robust at loading classes discovered during scanning, capable of loading any classes it was able to discover, through the Resource mechanism. ClassGraphClassLoader does not require classes at non-empty package roots (e.g. META-INF/classes) to be extracted to a temp dir before they can be loaded.
    • Made InputStream#close() auto-close the parent Resource in case the caller forgets to do so.
    • Made temp file deletion more robust.
    • Fixed a performance regression when reading from jarfiles via InputStream.
  • API changes (hence the bump to version 4.1.x):

    • Changed the return type of MethodParameterInfo#getAnnotationInfo() from AnnotationInfo[] to AnnotationInfoList for consistency with the rest of the API.
    • ClassGraph#createClassLoaderForMatchingClasses() was removed, as it is no longer needed (ClassGraph now always constructs a ClassGraphClassLoader).

Don't miss a new classgraph release

NewReleases is sending notifications on new releases.