Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a test for verifying the presence of native method definitions in the bridge #83

Open
adakitesystems opened this issue Nov 7, 2018 · 0 comments
Labels

Comments

@adakitesystems
Copy link
Collaborator

When marking a method as native in Java, our Gradle task generateJniHeaders will generate its prototype declaration in a JNI header file for the C++ bridge to include and implement. It would be nice if we could verify that all of our native methods have been at least defined in the bridge somewhere.

Example flow:

  1. Scan all JNI header files and parse each method signature. (e.g. files in BWAPI4J/src/native/include/)
  2. Scan all bridge C++ files for the implementation. (e.g. files in BWAPI4JBridge/src/)
  3. Throw an error message if an implementation is missing.
  4. Throw an error message if an implementation is present but has no corresponding prototype declaration found in the JNI header files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant