Bug 1446

Summary: ParentClass directive fails if interfaces are also present on the associated class
Product: [JogAmp] Gluegen Reporter: Mathieu Féry (MathiusD) <mfery>
Component: coreAssignee: Mathieu Féry (MathiusD) <mfery>
Status: RESOLVED FIXED    
Severity: normal CC: mfery, sgothel
Priority: P4    
Version: 2.5.0   
Hardware: All   
OS: all   
Type: DEFECT SCM Refs:
4ab62d5121afec50dcb975fcfabefd838861da28 4024bdaddd42580d02665b1b1655e7ce51fb28d5
Workaround: ---
Attachments: Patch of this issues

Description Mathieu Féry (MathiusD) 2023-08-08 11:51:07 CEST
If, as described here : https://jogamp.org/gluegen/doc/GlueGen_Mapping.html#oo-style-api-interface-mapping, we wish to generate several wrappers with an OO style, it is impossible to generate them with an InterfaceAndImpl style, as the generated implementation will have the name of the class it extends appended to the implements keyword. (like that: `public class MySubApiImpl extends MyApiImplimplements MySubApi {`)
Comment 1 Mathieu Féry (MathiusD) 2023-08-08 11:56:04 CEST
Created attachment 859 [details]
Patch of this issues

I've made a patch available here as patch (Or here : https://github.com/MathiusD/gluegen in 1446-parent-class-directives-issue-with-if-and-impl branch)
Comment 2 Sven Gothel 2023-08-08 18:41:02 CEST
Merged via 4024bdaddd42580d02665b1b1655e7ce51fb28d5

Good catch, thank you!

Note: No need to attach a patch as we use git here and I fetch all remote repos regularly.