roc-java icon indicating copy to clipboard operation
roc-java copied to clipboard

Add version compatibility checks

Open gavv opened this issue 1 year ago • 2 comments

This should be done after https://github.com/roc-streaming/roc-java/issues/57

When the library is initialized, we need to retrieve versions of native lib and go bindings, and check the following invariant:

  • major versions are equal
  • minor version of bindings is greater than or equal to minor version of native lib

(See "Versioning" section in Readme for explanation)

If the invariant is not satisfied, we should throw an exception with a message including the retrieved versions and explanation of what is wrong.

We can do this check in RocLibrary.loadLibrary.

gavv avatar Apr 05 '23 17:04 gavv

@gavv Can I work on this issue?

ayushkumar105 avatar Aug 03 '24 04:08 ayushkumar105

You're welcome

gavv avatar Aug 03 '24 09:08 gavv