summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/sun')
-rw-r--r--src/java/com/sun/gluegen/JavaType.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/com/sun/gluegen/JavaType.java b/src/java/com/sun/gluegen/JavaType.java
index 5e30810..3e9a399 100644
--- a/src/java/com/sun/gluegen/JavaType.java
+++ b/src/java/com/sun/gluegen/JavaType.java
@@ -331,7 +331,8 @@ public class JavaType {
}
public boolean isNIOBuffer() {
- return clazz != null && ((java.nio.Buffer.class).isAssignableFrom(clazz) || isNIOPointerBuffer());
+ return clazz != null && ( (java.nio.Buffer.class).isAssignableFrom(clazz) ||
+ (com.sun.gluegen.runtime.PointerBuffer.class).isAssignableFrom(clazz) ) ;
}
public boolean isNIOByteBuffer() {
@@ -353,7 +354,7 @@ public class JavaType {
public boolean isNIOPointerBuffer()
{
- return clazz == (com.sun.gluegen.runtime.PointerBuffer.class);
+ return (clazz == com.sun.gluegen.runtime.PointerBuffer.class);
}
public boolean isString() {