summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/sun/gluegen/runtime')
-rwxr-xr-xsrc/java/com/sun/gluegen/runtime/BufferFactory.java.javame_cdc_fp2
-rwxr-xr-xsrc/java/com/sun/gluegen/runtime/BufferFactory.java.javase2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/sun/gluegen/runtime/BufferFactory.java.javame_cdc_fp b/src/java/com/sun/gluegen/runtime/BufferFactory.java.javame_cdc_fp
index dacdd03..822d62d 100755
--- a/src/java/com/sun/gluegen/runtime/BufferFactory.java.javame_cdc_fp
+++ b/src/java/com/sun/gluegen/runtime/BufferFactory.java.javame_cdc_fp
@@ -82,7 +82,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();
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();