Skip to content

Releases: yglukhov/jnim

v0.3.2

30 Jun 13:53
Compare
Choose a tag to compare

Changed logic of mapping java nil values to jnim wrappers. Now nils are returned whenever java call returns nil.

v0.3.1

17 May 21:37
Compare
Choose a tag to compare
  • Automatically handle JNI_EDETACHED error when connecting to running VM in a new thread. (#36)
  • Introduce findClassOverride (#37)
  • Slightly changed jobject and co definitions to reflect their inheritance relations. This is a breaking change, resulting in compilation error, but it is easy to fix. (#39)
  • Fixed incompatibility with Nim 0.17. (#40)

v0.3.0

07 Feb 09:37
Compare
Choose a tag to compare

Ownership model changes

This change may affect you if you are using newJVMObject and fromJObject procs. Previously these procs assumed that the argument is local ref, which would be deleted by JVMObject finalizer. Now they don't take the ownership of the ref, but create a personal global ref. If you wish such local ref to be consumed, use new newJVMObjectConsumingLocalRef and fromJObjectConsumingLocalRef. Relevant issue: #29.

Experimental support for subclassing Java interfaces in Nim.

This is a new functionality that still may be adjusted in a backward incompatible way. Usage example is demonstrated in test_jni_export.nim

v0.2.6

26 Jan 08:29
Compare
Choose a tag to compare
  • Fixed class ref leak.
  • Minor performance improvements.

v0.2.5

21 Dec 12:47
Compare
Choose a tag to compare
  • Added $ proc for jstring
  • Added missing JNI API bindings.

Corrected version in nimble file

06 Dec 17:44
Compare
Choose a tag to compare
v0.2.4

Bump version to 0.2.4

Android VM autoconnect and optimizations

06 Dec 17:34
Compare
Choose a tag to compare
  • Implemented automatic connection to Android JVM/DVM
  • Various optimizations by moving signature computations to compile time.

v0.2.2

10 Nov 15:28
Compare
Choose a tag to compare
  • Fixed compilation errors introduced by recent Nim version.
  • Fixed JAVA_HOME search on MacOS.