| Summary: | code generation problem | ||
|---|---|---|---|
| Product: | [JogAmp] Jogl | Reporter: | Sven Gothel <sgothel> |
| Component: | core | Assignee: | Sven Gothel <sgothel> |
| Status: | VERIFIED FIXED | ||
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 1 | ||
| Hardware: | All | ||
| OS: | all | ||
| Type: | DEFECT | SCM Refs: | |
| Workaround: | --- | ||
---- Reported by andyskinner 2004-05-12 06:43:35 ---- 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. ---- Additional Comments From kbr 2004-07-15 15:49:23 ---- This was an artifact of the additions to support copying of certain types of arrays such as String[][] -> char**. It was mostly harmless, although it negated the bug fix it was intended to fix. Fixed in the current source base and in the forthcoming JOGL 1.1 beta 4. --- Bug imported by sgothel@jausoft.com 2010-03-24 07:46 EDT --- This bug was previously known as _bug_ 86 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=86