Bug 360419 - Can't return generic or template type in method (or attribute)
Summary: Can't return generic or template type in method (or attribute)
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL: http://pastebin.com/pSiWru9b
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-03-11 16:55 UTC by Tim Lehmann
Modified: 2018-10-27 02:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lehmann 2016-03-11 16:55:39 UTC
I create a class and add a template parameter to this class. Now I want to add a member of the template type to this class. In the attribute property this is possible but the uml graphic doesn't show the template type.
Same problem by returning an object of the generic type by a method. In the method property I am able to define the template type as return type but in the uml graphic it looks like the method returns nothing.

Reproducible: Always

Steps to Reproduce:
1. Create a class.
2. Right click on this class: new --> Template ... --> OK
3. Right click on this class: new --> Attribute/Operation --> type: the added Template --> OK

Actual Results:  
You get an uml class its: attribute has no type / method seems to return nothing.

Expected Results:  
The attribute should be from template type. The method should return the template type.

I have got public the content of my *.xmi file that show the issue on pastebin.com.
Comment 1 Ralf Habacker 2016-06-02 10:53:21 UTC
According to http://en.cppreference.com/w/cpp/language/variable_template there are several variants.
To get some insights of how it should be modelled it would be nice to have a working c++ test case showing what is expected.
Comment 2 Andrew Crouthamel 2018-09-26 22:23:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-10-27 02:35:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!