jni-rs v0.19.0 Release Notes

Release Date: 2021-01-24 // over 1 year ago
  • โž• Added

    • AutoArray and generic get_array_elements(), along with get_<type>_array_elements helpers. (#287)
    • size() method to AutoArray and AutoPrimitiveArray. (#278 / #287)
    • discard() method to AutoArray and AutoPrimitiveArray. (#275 / #287)

    ๐Ÿ”„ Changed

    • โœ‚ Removed AutoPrimitiveArray::commit(). (#290)
    • AutoByte/PrimitiveArray.commit() now returns Result. (#275)
    • Removed methods get/release/commit_byte/primitive_array_{elements|critical}. (#281)
    • Renamed methods get_auto_byte/long/primitive_array_{elements|critical} to get_byte/long/primitive_array_{elements|critical}. (#281)

Previous changes from v0.18.0

  • โž• Added

    • JNIEnv#define_unnamed_class function that allows loading a class without
      specifying its name. The name is inferred from the class data. (#246)
    • SetStatic<type>Field. (#248)
    • TryFrom<JValue> for types inside JValue variants (#264).
    • Implemented Copy for JNIEnv (#255).
    • repr(transparent) attribute to JavaVM struct (#259)

    ๐Ÿ”„ Changed

    • ๐Ÿฑ โš ๏ธ Switch from error-chain to thiserror, making all errors Send. Also, support all JNI errors
      in the jni_error_code_to_result function and add more information to the InvalidArgList
      error. (#242)