<?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>1442</bug_id>
          
          <creation_ts>2023-08-07 13:38:56 +0200</creation_ts>
          <short_desc>GlueGen: Parse inner classes &amp; interfaces of Java source files</short_desc>
          <delta_ts>2023-08-07 23:35:29 +0200</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.5.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>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1435</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Mathieu Féry (MathiusD)">mfery</assigned_to>
          <cc>mfery</cc>
          
          <cf_type>FEATURE</cf_type>
          <cf_scm_refs>2abb40b0ca9a6a06bdbe3e66b4235301ed15c693
0e6d18c6b6d46b54e679ce0c44613e21e58245f2</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6821</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-08-07 13:38:56 +0200</bug_when>
    <thetext>GlueGen&apos;s own JavaParsert.g (antlr) shall support inner classes and interfaces as generated by its own JavaCallback feature, see Bug 1435.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6822</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-08-07 13:42:25 +0200</bug_when>
    <thetext>Mathieu Féry added this features in commit 2abb40b0ca9a6a06bdbe3e66b4235301ed15c693.

Detailed message in commit 0e6d18c6b6d46b54e679ce0c44613e21e58245f2

* Add tests with each emitters for test2, but tests are shared and run for each emitters
* Update JavaParser.g to allow parsing of bindings generated after test2 processing
  * Add basic management of generic type (But not yet retrieved inside classTypeSpec args)
  * Add basic management of annotations (with or w/o parameter(s)) (Retrieved in statement, classes and interfaces but not used)
* Align lexer constants in JavaParser.g
* Update JavaParser.g to allow fetching all inner classes and inner interfaces to allow excluding by ExtendedInterfaceSymbolsIgnore</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6827</commentid>
    <comment_count>2</comment_count>
    <who name="Mathieu Féry (MathiusD)">mfery</who>
    <bug_when>2023-08-07 23:13:10 +0200</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6829</commentid>
    <comment_count>3</comment_count>
    <who name="Mathieu Féry (MathiusD)">mfery</who>
    <bug_when>2023-08-07 23:35:29 +0200</bug_when>
    <thetext>Retrieve Inner Interfaces and Classes was made necessary by the Java Callback generation (Bug 1435) functionality. Java Callback generate some interfaces to allow submit dedicated Java Callback to specifics C function and use some inner classes to manage this callbacks (Key Classes).

Additional notes :
Java Callback need this modification because generate some inner interfaces and classes are generated.

Parsing such files is necessary when using the following directives (Cf documentation related here: https://jogamp.org/gluegen/doc/GlueGen_Mapping.html#oo-style-api-interface-mapping):
 * ExtendedInterfaceSymbolsIgnore
 * ExtendedInterfaceSymbolsOnly
 * ExtendedImplementationSymbolsIgnore
 * ExtendedImplementationSymbolsOnly
 * ExtendedIntfAndImplSymbolsIgnore
 * ExtendedIntfAndImplSymbolsOnly</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>