Bug 86 - code generation problem
Summary: code generation problem
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2004-05-12 06:43 CEST by Sven Gothel
Modified: 2010-03-24 07:46 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:46:37 CET


---- 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