diff options
author | Sven Gothel <[email protected]> | 2023-06-26 04:09:19 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-06-26 04:09:19 +0200 |
commit | 68911f778039bbf08b5afbffd536b4cdacd33032 (patch) | |
tree | d201a9bc0762eea594d555ae777ab55bcf749a60 /src/java/com/jogamp/gluegen/CMethodBindingEmitter.java | |
parent | 93c63bd880b6bc8a85a0057112b5065b312af1db (diff) |
GlueGen JavaCallback: Expose getJNIMethodDescriptor() for JNI mangled method names, used in CMethodBindingEmitter; Use JavaCallback's function-pointer-type capital-name as simple-class-name and its FQN for JNI resolution.
Diffstat (limited to 'src/java/com/jogamp/gluegen/CMethodBindingEmitter.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/CMethodBindingEmitter.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java index 334df1b..66d4814 100644 --- a/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java +++ b/src/java/com/jogamp/gluegen/CMethodBindingEmitter.java @@ -1213,9 +1213,7 @@ public class CMethodBindingEmitter extends FunctionEmitter { getJNIMangledArg(Integer.TYPE, buf, false); } } else if (type.isNamedClass()) { - buf.append("L"); - buf.append(type.getName().replace('.', '_')); - buf.append("_2"); + buf.append(type.getJNIMethodDesciptor()); } else if (type.isCompoundTypeWrapper()) { // Mangle wrappers for C structs as ByteBuffer getJNIMangledArg(java.nio.ByteBuffer.class, buf, true); |