ochafik/nativelibs4java — Issue #225: typdef not being resolved always
Author: ustamansangat
Created: 2012-01-03 16:33:13+00:00
State: open

Original signature :
bool calcVaR(const int, const NativeHandle[], const NativeHandle, double[])
with
typdef long long NativeHandle
Jnaerator gives me:
boolean calcVaR(int tradeCount, LongBuffer tradeHandles, long modelHandle, DoubleBuffer resultsByTrade);

However, **sometimes** jnaerator fails to resolve what NativeHandle is and instead gives me:
boolean calcVaR(int tradeCount, CPPLibrary.NativeHandle tradeHandles[], CPPLibrary.NativeHandle modelHandle, DoubleBuffer resultsByTrade);

So, I thought maybe I will just use "-DNativeHandle=long long" command line switch but with this what I get is:
boolean calcVaR(int tradeCount, long tradeHandles[], long modelHandle, DoubleBuffer resultsByTrade);

It would be great if jnaerator could deterministically resolve typedefs - seems like there is some concurrency issue.