github classgraph/classgraph fast-classpath-scanner-2.7.0

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

Bugfix to ClassInfo#getMethod(); several changes and new API methods.

Bugfix, causing break in API, and therefore a version bump to 2.7.x:

  • ClassInfo#getMethod(String methodName) now returns List<MethodInfo> rather than MethodInfo, i.e. it supports fetching all overloaded methods of the same name.

Other breaking changes:

  • Constructors are now named <init> in MethodInfo.
  • ClassInfo#getMethods() now does not return constructors, to work similarly to java.lang.reflect. (See below for methods for fetching constructors.)
  • Removed deprecated ClassInfo#getDirectlyAnnotatedClasses() and ClassInfo#getNamesOfDirectlyAnnotatedClasses().

Non-breaking changes:

  • Added methods ClassInfo#getConstructors() and ClassInfo#getMethodsAndConstructors(). (#140, thanks to @febielgiva for the request.)
  • Added methods FieldInfo#getClassName() and MethodInfo#getClassName().
  • For FieldInfo and MethodInfo, added compareTo(other), equals() and hashCode() (#144, thanks to @chrisr3 for the request.)

Don't miss a new classgraph release

NewReleases is sending notifications on new releases.