Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Can't define a pointer to vector as input parameter.
Can't define a pointer to vector as input parameter. [message #1836245] Sat, 26 December 2020 01:10 Go to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
I'm trying to define a constructor that shall have a pointer to a vector as an input parameter.

I have defined the parameter like this:
index.php/fa/39609/0/

It can be seen from the image that the parameter is correctly generated, BUT when I save the .di file, the multiplicity gets automatically changed to 1!
index.php/fa/39611/0/

Which changes the parameter type from std::vector < Client* > to just Client which is not what I want.

Is this a bug? or am I doing something wrong?
Re: Can't define a pointer to vector as input parameter. [message #1836435 is a reply to message #1836245] Mon, 04 January 2021 10:41 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Hi,

this looks like a bug of the synchronizing mechanism. I think, designer needs to be more careful during the model update, i.e. only do updates if a synchronized editor is open and/or offer the option to update only method bodies and not signature.
Re: Can't define a pointer to vector as input parameter. [message #1836453 is a reply to message #1836435] Mon, 04 January 2021 16:58 Go to previous messageGo to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
@Ansgar

Do you want me to add it to Bugzilla? Or you have something related, if not the same, already?
Re: Can't define a pointer to vector as input parameter. [message #1836471 is a reply to message #1836453] Tue, 05 January 2021 09:10 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Yes, please add it.
Re: Can't define a pointer to vector as input parameter. [message #1836492 is a reply to message #1836471] Tue, 05 January 2021 21:39 Go to previous messageGo to next message
Manuel Malagon is currently offline Manuel MalagonFriend
Messages: 81
Registered: December 2011
Member
Done

Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=570103
Re: Can't define a pointer to vector as input parameter. [message #1837265 is a reply to message #1836492] Tue, 26 January 2021 13:05 Go to previous message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 461
Registered: March 2011
Location: Paris Saclay, France
Senior Member
Can you please check, if the bug has been corrected with the commit associated with the bug?

[Updated on: Tue, 26 January 2021 15:46]

Report message to a moderator

Previous Topic:Insert custom symbol/image in UML diagram
Next Topic:Papyrus profiles with derived stereotype properties defined by same name operations
Goto Forum:
  


Current Time: Fri Apr 26 12:57:58 GMT 2024

Powered by FUDForum. Page generated in 0.04650 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top