Method return type 'long' is parsed to void #270

Closed
ParoX2k opened this Issue Feb 22, 2012 · 3 comments

Projects

None yet

2 participants

@ParoX2k
ParoX2k commented Feb 22, 2012

A method return type 'int' is correctly parsed to 'int', but 'long' is parsed to void.....

Example:

long func(void);

is parsed to

public static native void func();
@ochafik
Member
ochafik commented Feb 22, 2012

Hi @ParoX2k ,

Thanks for your report !

What's happening here is that the "long" modifier is parsed and attached to the function, which is completely incorrect ! (as a very temporary workaround, one can use "int" or "long int" instead of "long")

Cheers

@ParoX2k
ParoX2k commented Feb 22, 2012

Hey Olivier,

Thanks for your quick response on the mailing list also! :)

As far as my prio for this issue is concerned, i can live with this workaround for now. Only 1 out of 150 methods of my C library has return type long - and i just catched that one to try out the JNAerated code ;-)

Greets,
Marc

@ochafik
Member
ochafik commented Feb 22, 2012

Hi @ParoX2k,

This is now fixed, thanks again for your report !

Cheers

@ochafik ochafik closed this Feb 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment