From d3f9d0ab71fd25d8d6f6eb9c3de6c6b47ddae92e Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Tue, 2 Apr 2019 18:26:19 +0200 Subject: [PATCH] Keep (long*) for standard pointers --- .../org/fusesource/hawtjni/generator/model/ReflectField.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/model/ReflectField.java b/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/model/ReflectField.java index e8ba161d..2e158a19 100755 --- a/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/model/ReflectField.java +++ b/hawtjni-generator/src/main/java/org/fusesource/hawtjni/generator/model/ReflectField.java @@ -104,7 +104,7 @@ public boolean isSharedPointer() { if( annotation == null ) { return false; } - return getFlag(SHARED_PTR) || ( type.getWrappedClass() == Long.TYPE && getCast().endsWith("*") ); + return getFlag(SHARED_PTR); }