aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/com/sun/gluegen/JavaMethodBindingEmitter.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
index 87b9521..3cbafc0 100644
--- a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
+++ b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
@@ -223,6 +223,10 @@ public class JavaMethodBindingEmitter extends FunctionEmitter
// returned as e.g. ByteBuffer)
return "Object";
}
+ } else if (type.isNIOBufferArray()) {
+ // Arrays of direct Buffers sent down as Object[]
+ // (Note we don't yet support returning void**)
+ return "Object[]";
} else if (type.isCompoundTypeWrapper()) {
// Compound type wrappers are unwrapped to ByteBuffer
return "java.nio.ByteBuffer";