Re: [java-gnome-hackers] Problem with bindings generator
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2008-05-31 00:00:38
|
On Wed, 2008-05-28 at 22:48 +0200, Stefan Prelle wrote: > // translate return value to JNI type > _result = (jintArray) NULL; Hm. That's interesting (and doesn't look quite the way I'm used to writing that comment). The code that outputs that is in FunctionGenerator. If you run: $ bzr gannotate src/generator/com/operationaldynamics/codegen/FunctionGenerator.java and look around line 592, you'll see where that came from. Looks to be some that Vreixo added to when doing work that changed our memory cleanup. Anyway, the relevant line is 597; if I had to guess I'd say that the jniReturnEncode() function for whatever type is actually being processed [you said int[], right? If so, that'd be something *Array*] either hasn't been overridden or has been overridden incorrectly. AfC Sydney -- Andrew Frederick Cowie Managing Director Operational Dynamics Consulting, Pty Ltd Sydney +61 2 9949 1885 New York +1 646 472 5054 Toronto +1 647 477 5603 London +44 207 1019201 We are an operations engineering consultancy focusing on strategy, organizational architecture, systems review, and change management procedures: enabling successful use of open source in mission critical enterprises, worldwide. http://www.operationaldynamics.com/ |