summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-03-19 05:12:40 +0100
committerSven Gothel <[email protected]>2010-03-19 05:12:40 +0100
commit58d9dd488cbd7eee530031ef9ea523037be175cd (patch)
treec47ae5b560b9a935b7789ac1215a25cc8e2c7c4e /src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
parent30d3d3a30fed35f23a8189dca3e7b4c92d57e2ad (diff)
Drop PointerBuffer.wrapNative2Java(..)
in favor of a simple PointerBuffer.wrap(..), due to the new semantics, ie internal integer/long presentation. Fixed the javame code in this regard.
Diffstat (limited to 'src/java/com/sun/gluegen/JavaMethodBindingEmitter.java')
-rw-r--r--src/java/com/sun/gluegen/JavaMethodBindingEmitter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
index a813348..2d7a8b2 100644
--- a/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
+++ b/src/java/com/sun/gluegen/JavaMethodBindingEmitter.java
@@ -768,7 +768,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter
throw new RuntimeException("While emitting glue code for " + getName() +
": can not legally make pointers opaque to anything but longs");
}
- writer.println(" return PointerBuffer.wrapNative2Java(_res, false);");
+ writer.println(" return PointerBuffer.wrap(_res);");
} else {
String returnTypeName = returnType.getName().substring("java.nio.".length());
writer.println(" return _res.as" + returnTypeName + "();");