Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete code generated from association used as key #184

Closed
Nava2 opened this issue Aug 26, 2015 · 6 comments
Closed

Incomplete code generated from association used as key #184

Nava2 opened this issue Aug 26, 2015 · 6 comments
Assignees
Labels
associations Related to umple associations Component-SemanticsAndGen Related to code generators in general and the meaning of Umple models Diffic-Med A non-trivial problem that may take over a week or may not be obvious how to fix or require analysis Priority-High This problem or enhancement is likely to be highly visible and or impactful of users Status-Verified Type-Defect

Comments

@Nava2
Copy link
Contributor

Nava2 commented Aug 26, 2015

Originally reported on Google Code with ID 284
Owned by fkazhamiaka


What steps will reproduce the problem?

Type the following code

class A
{
1 -- 1 B;
key {B};
}

class B
{
Integer id;
key {id};
}

What is the expected output? What do you see instead?

public boolean equals(Object obj)
{
if (obj == null) { return false; }
if (!getClass().equals(obj.getClass())) { return false; }

A compareTo = (A)obj;

return true;
}

See also issue 226 for another 1-1 problem


Reported by @umple on 2012-03-05 14:43:26

@Nava2
Copy link
Contributor Author

Nava2 commented Aug 26, 2015

This problem exists whenever an association name is used as a key

Just add ' key { Booking, SpecifcFlight}' to the Booking class in the airline example


Reported by @umple on 2012-03-05 15:00:10

@Nava2
Copy link
Contributor Author

Nava2 commented Aug 26, 2015

Reported by @umple on 2012-06-14 15:02:30

  • Labels added: Diffic-Med

@Nava2 Nava2 added Type-Defect associations Related to umple associations Priority-High This problem or enhancement is likely to be highly visible and or impactful of users Status-Verified Component-SemanticsAndGen Related to code generators in general and the meaning of Umple models Diffic-Med A non-trivial problem that may take over a week or may not be obvious how to fix or require analysis keys labels Aug 26, 2015
@Nava2
Copy link
Contributor Author

Nava2 commented Aug 26, 2015

Reported by @umple on 2012-09-27 19:44:52

  • Owner removed

@Nava2
Copy link
Contributor Author

Nava2 commented Aug 26, 2015

I'll start looking into this


Reported by fkazhamiaka on 2013-11-04 14:08:54

  • Owner changed: fkazhamiaka

@Nava2
Copy link
Contributor Author

Nava2 commented Aug 26, 2015

The problem had to do with Associations in key statements being expected to have a lower-case
first letter. I have committed code that allows Associations with an upper-case first
letter in the key statement to be properly parsed.


Reported by fkazhamiaka on 2013-11-08 04:48:10

@Nava2
Copy link
Contributor Author

Nava2 commented Aug 26, 2015

Reported by @umple on 2013-12-05 15:06:27

  • Status changed: Verified

@Nava2 Nava2 closed this as completed Aug 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
associations Related to umple associations Component-SemanticsAndGen Related to code generators in general and the meaning of Umple models Diffic-Med A non-trivial problem that may take over a week or may not be obvious how to fix or require analysis Priority-High This problem or enhancement is likely to be highly visible and or impactful of users Status-Verified Type-Defect
Projects
None yet
Development

No branches or pull requests

2 participants