I built JOGL on a Mac recently, and some of the generated code seems to be duplicated.
For example, in JAWT_DrawingSurface_JNI.c:
JNIEXPORT jint JNICALL
Java_net_java_games_jogl_impl_JAWT_1DrawingSurface_Lock0(JNIEnv *env, jobject _unused, jobject jthis0) {
JAWT_DrawingSurface * this0 = NULL;
jint _res;
if (jthis0 != NULL) {
this0 = (JAWT_DrawingSurface *) (*env)->GetDirectBufferAddress(env, jthis0);
}
if (jthis0 != NULL) {
this0 = (JAWT_DrawingSurface *) (*env)->GetDirectBufferAddress(env, jthis0);
}
_res = this0->Lock(this0);
return _res;
}
All the methods in this file have such duplicate generated code.
I haven’t (recently) built JOGL on Windows or Linux, so haven’t gone to check generated code on those platforms.
andy