Skip to content

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

Description

@adakitesystems

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions