diff options
author | Sven Gothel <[email protected]> | 2011-10-06 02:05:22 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-06 02:05:22 +0200 |
commit | e388426759e02e15ccc93b9df2e5c0400590d057 (patch) | |
tree | 2b37cc94003ecc76e3a1cc250d6745b746cf6a28 /src/java/com/jogamp/gluegen/JavaEmitter.java | |
parent | 2fdff368a5e77c31fff242f286c61edabae2669e (diff) |
Enhance ReleasePrimitiveArrayCritical: Use mode-flag JNI_ABORT if array is const, ie no write-back
We shall consider the C header declaration as being correct
and no modification shall happen on const arrays.
Tested w/ unit tests and JOGL
+++
Cleanup JavaType: final immutable fields, proper CVoidPointer name
Diffstat (limited to 'src/java/com/jogamp/gluegen/JavaEmitter.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/JavaEmitter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java index c7c6cc8..d768858 100644 --- a/src/java/com/jogamp/gluegen/JavaEmitter.java +++ b/src/java/com/jogamp/gluegen/JavaEmitter.java @@ -1241,7 +1241,7 @@ public class JavaEmitter implements GlueEmitter { // arrays, NIO buffers, or both in expandMethodBinding if (t.pointerDepth() == 1 || t.arrayDimension() == 1) { if (targetType.isVoid()) { - return JavaType.createForVoidPointer(); + return JavaType.createForCVoidPointer(); } else if (targetType.isInt()) { // size_t and intptr_t is always a PointerBuffer since size is arch dependent if ("size_t".equals(targetType.getName()) || "intptr_t".equals(targetType.getName())) { |