<?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>389</bug_id>
          
          <creation_ts>2010-03-17 01:22:00 +0100</creation_ts>
          <short_desc>Mixed types in generated code.</short_desc>
          <delta_ts>2010-03-27 21:29:18 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Gluegen</product>
          <component>core</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</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>FEATURE</cf_type>
          <cf_scm_refs>a41f4d504d2f8cf58114d570d23f757ab2659cfc</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>413</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 08:04:20 +0100</bug_when>
    <thetext>


---- Reported by sgothel@jausoft.com 2010-03-17 01:22:24 -0400 ----

Allow mixed argument types (arrays, NIO buffers) 
in gluegen generated code.



--- Bug imported by sgothel@jausoft.com 2010-03-24 08:04 EDT  ---

This bug was previously known as _bug_ 1 at http://jogamp.org/bugzilla/show_bug.cgi?id=1
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>433</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-27 21:29:18 +0100</bug_when>
    <thetext>    Mixed types in generated code are functioning now,
    even though not all permutations are generated - still.
    
    However, this patch merges the indirect object passing,
    wheather it is a primitive array or an indirect NIO buffer,
    incl. PointerBuffer.
    
    This allows the usage of only one JNI functions for all combinations.
    
    Only in case of NIODirectOnly, the simplified direct only &apos;0&apos;
    variation is created - otherwise the parametrized &apos;1&apos; variant.
    
    The junit tests proves the implementation and
    almost completes the gluegen junit tests coverage
    for JavaEmitter and ProcAddressEmitter.
    
    Impact/Result:
        - Working mixed array types
        - JOGL GL2 native library shrunk around 30%
        - Simplified gluegen code
        - Almost complete gluegen junit tests
    
    TODO: Complete permutations of array/NIO arguments,
          if desired.
    
    ++++
    
    Misc changes:
    
    - NativeLibrary implements DynamicLookupHelper:
        lookupFunction() -&gt; dynamicLookupFunction()</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>