hzzc1987 / jnaerator

Automatically exported from code.google.com/p/jnaerator
0 stars 0 forks source link

Hypens in header names translate to hyphens in class names #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
One step to reproduce:
1. use Jnaerator to process any header file with hyphen in its name, like 
"test-me.h"

Expected is some compilable Java class name, like testMeLibrary or 
testmeLibrary or whatnot.

The observed result is "test-meLibrary" class which fails to be compiled. 
Same applies to the generated package names.

I'm running console jnaerator-0.9.1.jar on Windows Vista OS, with the 
following parameters:
java -Xmx1024M -jar jnaerator-0.9.1.jar -direct -entryClass MyLib -package 
org.my.lib mylib/*.h

Original issue reported on code.google.com by e.v.c...@gmail.com on 27 Oct 2009 at 10:49

GoogleCodeExporter commented 8 years ago
Hi,
Thanks for your report, that's indeed something that can easily be fixed.
There's however a very simple workaround in the meanwhile : manually declare 
the name 
of your library with the "-library TestMe" switch (when there is no such 
switch, 
JNAerator tries to infer the name of the library based on the name of the first 
input 
file).

Cheers
--
Olivier

Original comment by olivier.chafik@gmail.com on 27 Oct 2009 at 11:03

GoogleCodeExporter commented 8 years ago
That helped, thanks a lot!

Original comment by e.v.c...@gmail.com on 27 Oct 2009 at 11:10

GoogleCodeExporter commented 8 years ago
Fixed in revision #878.

Original comment by olivier.chafik@gmail.com on 28 Oct 2009 at 12:25