Skip to content

Generator still generates try-catch blocks for callbacks when NoException is present #484

@junlarsen

Description

@junlarsen

The Generator class will still produce JNI code with try-catch blocks for callback functions' _call function when the @NoException annotation is present.

Reproduction Steps

  1. Create a preset of a library that makes use of callback functions - I've tested with LLVM's C-style function pointers
  2. Add the @NoException annotation to the InfoMapper preset class
  3. Run the JavaCPP generator with the javacpp.deleteJniFiles property set to false
  4. View the generated JNI code for the callback types

Based on mailing list thread: https://groups.google.com/g/javacpp-project/c/zzGRu019BoA

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