Bug 1446 - ParentClass directive fails if interfaces are also present on the associated class
Summary: ParentClass directive fails if interfaces are also present on the associated ...
Status: RESOLVED FIXED
Alias: None
Product: Gluegen
Classification: JogAmp
Component: core (show other bugs)
Version: 2.5.0
Hardware: All all
: P4 normal
Assignee: Mathieu Féry (MathiusD)
URL:
Depends on:
Blocks:
 
Reported: 2023-08-08 11:51 CEST by Mathieu Féry (MathiusD)
Modified: 2023-08-08 18:41 CEST (History)
2 users (show)

See Also:
Type: DEFECT
SCM Refs:
4ab62d5121afec50dcb975fcfabefd838861da28 4024bdaddd42580d02665b1b1655e7ce51fb28d5
Workaround: ---


Attachments
Patch of this issues (884 bytes, patch)
2023-08-08 11:56 CEST, Mathieu Féry (MathiusD)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.