<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:Arial;">Hi Barry,<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">I haven't used Java in a while, but those are type signatures as used in JNI. If I recall correctly, <span class="font" style="font-family:menlo, consolas, monospace, sans-serif;">(DDDDDLjava/lang/Long;Ljava/lang/Boolean;)V</span> is void f(double p1, double p2, double p3, double p4, double p5, long p6, boolean p6).<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">They're used to disambiguate overloaded methods.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Laurentiu<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">PS: I found <a href="https://docs.oracle.com/en/java/javase/20/docs/specs/jni/types.html">https://docs.oracle.com/en/java/javase/20/docs/specs/jni/types.html</a> with more details.<br></div><div style="font-family:Arial;"><br></div><div>On Tue, Jun 6, 2023, at 04:43, Barry DeZonia wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div>Even,<br></div><div><br></div><div>Does this look okay as part of my typemap declaration? It is the only part I am confused about. I am very unfamiliar with this "(DDDDDL...." stuff And the L and V after each parameter. Where can I learn what this stuff means?<br></div><div><br></div><div><div>%typemap(argout) (int *nDimensions, GDALDimenion const **pDimensions )<br></div><div>{<br></div><div>  const jclass dimensionClass = jenv->FindClass("org/gdal/gdal/Dimension");<br></div><div>  const jclass vectorClass = jenv->FindClass("java/util/Vector");<br></div><div>  const jmethodID add = jenv->GetMethodID(vectorClass, "add", "(Ljava/lang/Object;)Z");<br></div><div>  const jmethodID dimensionCon = jenv->GetMethodID(dimensionClass, "<init>",<br></div><div>    "(DDDDDLjava/lang/Long;Ljava/lang/Boolean;)V");<br></div><div><br></div><div>  for( int i = 0; i < *$1; i++ ) {<br></div><div>    jobject dimensionObj = jenv->NewObject(dimensionClass, dimensionCon,<br></div><div>                                &((*$2)[i]),<br></div><div>                                true);<br></div><div>    jenv->CallBooleanMethod($input, add, dimensionObj);<br></div><div>  }<br></div><div>}<br></div></div></div><div><br></div></blockquote><div style="font-family:Arial;"><br></div></body></html>