Open GoogleCodeExporter opened 9 years ago
Original comment by TylerJDMcConnell
on 14 Mar 2014 at 3:27
Original comment by TimothyCLethbridge
on 21 Mar 2014 at 6:19
Original comment by TylerJDMcConnell
on 4 Apr 2014 at 7:17
[deleted comment]
As per my conversation with Andrew and Miguel, we believe the expected
behaviour for this bug is to:
1) Remove any defined mutator/accessor methods which are named in conflict with a derived attribute during compilation. For example, if a derived attribute is named "class" and a method named "getClass" or "setClass" exists, then the compiler will remove the "getClass" or "setClass" method
2) Display a compiler warning to the user stating that their conflicting method(s) was removed and explain exactly why it was removed, with the steps the developer should take to correct the warning. The message would be something like, "Ignoring method named '<conflicting method name>' because there exists a derived attribute named '<derived attribute name>'. Derived attributes should not have explicitly defined getters/setters. Please either remove the conflicting method or turn the derived attribute to a regular attribute."
Original comment by TylerJDMcConnell
on 18 Apr 2014 at 5:26
Once this issue is complete, another issue should be created to encapsulate the
effort required to change all code producing the new warning from this issue.
Original comment by TylerJDMcConnell
on 24 Apr 2014 at 3:39
As far as I can tell, this issue is fixed. The compiler ignores the
user-defined methods that have naming conflicts with umple-generated methods.
The Java generator produces a concrete class for the example above, and leaves
out the user-defined method setName.
Original comment by CraigBry...@gmail.com
on 9 Feb 2015 at 3:06
Original issue reported on code.google.com by
TylerJDMcConnell
on 14 Mar 2014 at 3:27