Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

FEAT: Generate JNI headers #125

Open
KFilipek opened this issue Feb 12, 2021 · 0 comments
Open

FEAT: Generate JNI headers #125

KFilipek opened this issue Feb 12, 2021 · 0 comments

Comments

@KFilipek
Copy link
Contributor

FEAT: Generate JNI headers during compilation process

Rationale

Principle: "avoid hardcoding".

Description

Now headers are hardcoded and placed in repository, but they should be generated automatically.

API Changes

N/A

Implementation details

  1. Bump to Java 10 (javah executable is deprecated since Java 9 and removed in 10, so better is use newer version)
  2. Use plugin to generate headers
  3. Profit

Posts with explanation

$ cd pmemkv-binding/src/main/java
$ javah io.pmem.pmemkv.Database
$ ls
io  io_pmem_pmemkv_Database_Builder.h  io_pmem_pmemkv_Database.h

Meta

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant