Running jextract on a bunch of headers of my C library

Virendra J. Marathe virendra.marathe at oracle.com
Mon Mar 26 22:00:45 UTC 2018


Hi all,

I'm using jextract to create a jar file from the header files of my 
C-based transactional access
library for persistent memory.  jextract can't seem to deal with enums 
and #defines that span
multiple lines.  It can't deal with #defines that appear in consecutive 
lines.  It ends up
dropping all enums and a bunch of the constants defined in the attach 
header files.  I've
attached the tar ball that contains the headers and the jar file 
generated using

../../dev/build/linux-x86_64-normal-server-release/jdk/bin/jextract -I 
/usr/lib64/clang/3.9.1/include/ pm_api.h

Please take a look at pm_defs.class and pl_log.class for representative 
examples.

Thanks,
Virendra




More information about the panama-dev mailing list