ObeoNetwork / UML-Designer

OpenSource (EPL licensed) UML2 Graphical Modelers (Class, Composite, State, Activity, Sequence ...)
http://umldesigner.org
320 stars 123 forks source link

Missing HashSet import in JAVA classes generated from UML model #880

Closed Johann-Angeli closed 7 years ago

Johann-Angeli commented 8 years ago

I use UML2 to Java (version 3.0.0.) for generating my JAVA classes.

In case of fields representing a list of items, the generated code doesn't contains import for the targeted type (HashSet) and the code doesn't compile.

I'm oblige to manually add "import java.util.HashSet;"

Environment

AxelRICHARD commented 7 years ago

Hi,

I can't reproduce your problem with the UML Designer 7.1.0.

Can you provide us a test case to reproduce the problem please ?

Johann-Angeli commented 7 years ago

Hi,

I created a new workspace dedicated to this problem (see attached file).

The workspace contains :

workspace-uml.zip