Skip to content

2.2.0

Latest
Compare
Choose a tag to compare
@davidmarquis davidmarquis released this 28 Apr 12:31
· 7 commits to master since this release

The main goal of this release was to make the library completely standalone, getting rid of Apache Commons BeanUtils as a dependency. Code was re-used from @minimalcode-org as a basis for introspection and reflection, and a custom data converter was implemented to migrate the existing usage of BeanUtils' ConvertUtils class.

These changes should be transparent to your code. Please file an issue if you observe any change in behaviour after upgrading.

  • [NEW]: Default methods on builder interfaces are now supported, although the Java runtime will emit a warning when using them on Java 9+. This is because calling default methods on interfaces via reflection requires a special access that has been restricted in Java 9. This behaviour might result in errors in a future Java release so use default methods sparingly. See #11
  • [CHANGE]: The library is now completely standalone, with an optional dependency on cglib to speed things up a bit. See #12
  • [CHANGE]: Data conversion is now handled internally instead of being delegated to BeanUtils ConvertUtils. The internal data converter supports adding custom conversions but this release does not yet let you define custom ones. If you were using custom conversions from ConvertUtils, you'll need to wait until the next release, which will support custom conversions.