From b138169c1f85a7914304ae793efb9cabfbfd5da2 Mon Sep 17 00:00:00 2001
From: Michael Bien <mbien@fh-landshut.de>
Date: Tue, 12 Jan 2010 17:57:27 +0100
Subject: fixed emitted code for buffer-array mixing. removed workaround in
 BufferFactory since it is no longer needed. small code cleanup (generator
 java 5 migration).

---
 src/java/com/sun/gluegen/runtime/BufferFactory.java.javase | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/java/com/sun/gluegen/runtime/BufferFactory.java.javase')

diff --git a/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase b/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase
index 1e660c1..cb8c770 100755
--- a/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase
+++ b/src/java/com/sun/gluegen/runtime/BufferFactory.java.javase
@@ -81,7 +81,7 @@ public class BufferFactory {
       public in Buffer and not replicated in all subclasses. */
   public static boolean isDirect(Object buf) {
     if (buf == null) {
-      return false;
+      return true;
     }
     if (buf instanceof ByteBuffer) {
       return ((ByteBuffer) buf).isDirect();
-- 
cgit v1.2.3