<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>86</bug_id>
          
          <creation_ts>2004-05-12 06:43:35 +0200</creation_ts>
          <short_desc>code generation problem</short_desc>
          <delta_ts>2010-03-24 07:46:37 +0100</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:46:37 +0100</bug_when>
    <thetext>


---- 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)-&gt;GetDirectBufferAddress(env, 
jthis0); 
  } 
  if (jthis0 != NULL) { 
    this0 = (JAWT_DrawingSurface *) (*env)-&gt;GetDirectBufferAddress(env, 
jthis0); 
  } 
  _res = this0-&gt;Lock(this0); 
  return _res; 
}


All the methods in this file have such duplicate generated code. 
 
I haven&apos;t (recently) built JOGL on Windows or Linux, so haven&apos;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[][] -&gt; 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
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>