ochafik/nativelibs4java — Issue #236: JNAerator does not create enum classes or method calls
Author: finson
Created: 2012-01-14 19:47:27+00:00
State: open

Olivier: I successfully rebuilt all the JNAerator projects from the latest repo and ran it against my library header files. It no longer creates any enum classes or native method prototypes at all! The only methods produced in LibcecLibrary.java are two versions of __mb_cur_max. No enum classes, no library method calls. There are two lines that read "/// Conversion Error : null (void type !)". I'm fairly sure I have not changed the C headers or the config.jnaerator file, so I think this is a new jnaerator problem. (Always reserving the possibility of my having made a silly mistake, of course ...)

Any thoughts?

Thanks.

Doug

```[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Anarres JCPP (with JNAerator modifications) ........... SUCCESS [23.589s]
[INFO] JNAerator Parent Project .............................. SUCCESS [2.595s]
[INFO] OChafik's General Utilities ........................... SUCCESS [5.526s]
[INFO] OChafik's Swing Utilities ............................. SUCCESS [6.281s]
[INFO] JNAerator's Patched JNA Library ....................... SUCCESS [3.053s]
[INFO] JNAerator Runtime ..................................... SUCCESS [7.502s]
[INFO] JNAerator Rococoa Runtime ............................. SUCCESS [2.711s]
[INFO] JNAerator Parser ...................................... SUCCESS [17.203s]
[INFO] JNAerator CLI and Studio Tools ........................ SUCCESS [17.273s]
[INFO] JNAerator Maven Plugin ................................ SUCCESS [6.357s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
```

```finson@MAPLE /E/Users/finson/git/nativelibs4java/libraries/jnaerator (master)
$ git show
commit e7d810d73927015ebb4f6e3949b13dcbbe8aa1a4
Author: Olivier Chafik
Date: Sat Jan 14 19:17:32 2012 +0100
```

```...snip...
/// No data exports in pure code
public int __mb_cur_max() {
try {
return (int)BridJ.getNativeLibrary("libcec").getSymbolPointer("__mb_cur_max").as(int.class).get();
}catch (Throwable $ex$) {
throw new RuntimeException($ex$);
}
}
/// No data exports in pure code
public LibcecLibrary __mb_cur_max(int __mb_cur_max) {
try {
{
BridJ.getNativeLibrary("libcec").getSymbolPointer("__mb_cur_max").as(int.class).set(__mb_cur_max);
return this;
}
}catch (Throwable $ex$) {
throw new RuntimeException($ex$);
}
}
/// Conversion Error : null (void type !)
/// Conversion Error : null (void type !)
}
```