Wrong generated code for association member variables list if the class is named "A" when in "show files in different tabs" mode #971

Open
amidzak opened this Issue Jan 23, 2017 · 1 comment

Projects

None yet

2 participants

@amidzak
Contributor
amidzak commented Jan 23, 2017

Consider the following Umple code
class A{ } class C{ * -- * A; }

This generates the following code for the Type of the list in the generated code:
`
//------------------------
// MEMBER VARIABLES
//------------------------

//C Associations
private List<a> as;

//------------------------
// CONSTRUCTOR
//------------------------

public C()
{
as = new ArrayList</a><a>();
}

//------------------------
// INTERFACE
//------------------------

public A getA(int index)
{
A aA = as.get(index);
return aA;
}

public List</a><a> getAs()
{
List</a><a> newAs = Collections.unmodifiableList(as);
return newAs;
}
`

@amidzak amidzak changed the title from Wrong generated code for association member variables list if the class is named "A" to Wrong generated code for association member variables list if the class is named "A" when in "show files in different tabs" mode Jan 23, 2017
@Nava2
Member
Nava2 commented Jan 24, 2017

This is a duplicate of #970, I think.

Also, when you paste multiline code fragments, use three ` symbols.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment