google-code-export / umple

Automatically exported from code.google.com/p/umple
1 stars 0 forks source link

method conflict with default attributes #501

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
class Student
{
  defaulted name = "a";
  String defaultName;
}

The above produces two getDefaultName (or get_default_name in ruby), so the 
file does not compile.  

We should be throwing a compile error.

Original issue reported on code.google.com by aforw...@gmail.com on 9 Feb 2014 at 1:13

GoogleCodeExporter commented 9 years ago
Verified by Miguel G.
Tests confirm it.

Original comment by asopa...@gmail.com on 9 Feb 2014 at 5:26

GoogleCodeExporter commented 9 years ago
Error message improved by another patch.

Original comment by asopa...@gmail.com on 9 Feb 2014 at 8:16

GoogleCodeExporter commented 9 years ago
Error message has been improved.
Issues 501 and 505 verified.

Original comment by asopa...@gmail.com on 9 Feb 2014 at 10:11

GoogleCodeExporter commented 9 years ago
I am reopening this issue. The way the error message is being presented is not 
consistent with other error messages in Umple.

In UmpleOnline, if you look at other error messages, they are detected 
immediately and cancel compilation. This error actually seems to spit out 
output that consists of the error message.

Please fix so that it is consistent with the way other error detection works.

Thanks

Original comment by TimothyCLethbridge on 10 Feb 2014 at 2:52

GoogleCodeExporter commented 9 years ago

Original comment by TimothyCLethbridge on 13 Feb 2014 at 8:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Latest patch (r3595) is attached

Original comment by ckchan.cs on 2 Mar 2014 at 10:23

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by asopa...@gmail.com on 3 Mar 2014 at 5:06