roc-java
roc-java copied to clipboard
Add version compatibility checks
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 Can I work on this issue?
You're welcome