<?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>1144</bug_id>
          
          <creation_ts>2015-03-10 08:10:42 +0100</creation_ts>
          <short_desc>Add &apos;DelegateImplementation&apos;, manually impl. may delegate to renamed original</short_desc>
          <delta_ts>2019-03-29 17:54:45 +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.3.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1135</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>454fac44efd1728d8f5c09ed4abd4041f6187e44
c3b2a86bb9051d6f03c3f104eff2dbe6cefc1803
f664f7e950ff60d73e488801cf7f37878588203d
405512e1c8a2e24834b0d057f0b020b4a0f4c25b
bbea09816015ecf3596acdcc033553127fcc0ef3
213d01cac6bb0b91e85dbacb5cd4dff539881780</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4630</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-03-10 08:10:42 +0100</bug_when>
    <thetext>&apos;DelegateImplementation&apos; is a variation of &apos;ManuallyImplement&apos;.

&apos;ManuallyImplement&apos; emits the interface method, but suppresses
the Java and native-code implementation.
The latter shall be implemented manually by the user.

&apos;DelegateImplementation&apos; emits the interface method, 
and the renamed Java and native-code implementation.
Both can be called from the manual user implementation,
hence delegation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4633</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-03-10 08:17:38 +0100</bug_when>
    <thetext>Configuration:
  DelegateImplementation &lt;ORIG-SYMBOL&gt; &lt;RENAMED-IMPL-SYMBOL&gt;

I.e. delegation model shall apply to &lt;ORIG-SYMBOL&gt;
and the Java and native-code implementation renamed to &lt;RENAMED-IMPL-SYMBOL&gt;.

The user manual implementation of &lt;ORIG-SYMBOL&gt;
may delegate to &lt;RENAMED-IMPL-SYMBOL&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4644</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-03-11 18:39:42 +0100</bug_when>
    <thetext>454fac44efd1728d8f5c09ed4abd4041f6187e44
c3b2a86bb9051d6f03c3f104eff2dbe6cefc1803
f664f7e950ff60d73e488801cf7f37878588203d
405512e1c8a2e24834b0d057f0b020b4a0f4c25b
   &apos;DelegateImplementation&apos; is a variation of &apos;ManuallyImplement&apos;.
    
    &apos;ManuallyImplement&apos; emits the interface method, but suppresses
    the Java and native-code implementation.
    The latter shall be implemented manually by the user.
    
    &apos;DelegateImplementation&apos; emits the interface method,
    and the _private_ renamed Java and native-code implementation.
    Both can be called from the manual user implementation,
    hence delegation.
    
    Configuration:
      DelegateImplementation &lt;ORIG-SYMBOL&gt; &lt;RENAMED-IMPL-SYMBOL&gt;
    
    I.e. delegation model shall apply to &lt;ORIG-SYMBOL&gt;
    and the Java and native-code implementation renamed to &lt;RENAMED-IMPL-SYMBOL&gt;.
    
    The user manual implementation of &lt;ORIG-SYMBOL&gt;
    may delegate to &lt;RENAMED-IMPL-SYMBOL&gt;.

bbea09816015ecf3596acdcc033553127fcc0ef3
    - DelegateImplementation requires own MethodBinding for delegates impl.
      The delegation name must be included within
      the FunctionSymbol&apos;s aliases _only_ for implementations,
      where delegation applies.
      This allows all subsequent type/cfg checks to hit on AliasedSymbol!
    
      Hence we need to create individual MethodBinding instances
      for interfaces and public/private implementations.
    
    - Adding ReturnsOpaque
      Configuration:
        ReturnsOpaque &lt;Primitive Java Type&gt; &lt;Function Name&gt;
    
      This feature is necessary to achieve &apos;Opaque&apos; functionality
      for function&apos;s return type - instead of types in general.
    
    - Fix AliasedSymbolImpl copy-ctor, i.e. this.name = o.name !

213d01cac6bb0b91e85dbacb5cd4dff539881780</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>