Created attachment 847538 [details] Screen1 When an import suggestion of class X is defined, and X is a subclass of java.util.Collection the following issue was detected. 1) Asuming we added for example an import suggestion of class X that extends java.util.Collection 2) Then we open the data modeller and add a property e.g. theList of type X. (see attached file Screen1) 3) save the model in order to generate the pojos 4) open again the datamodeler. We we go to the pojo that have the property "theList" we will see it wrong. (see attached file Screen2)
Created attachment 847539 [details] Screen2
The following commit solves the issue in master branch: https://github.com/droolsjbpm/kie-wb-common/commit/eb4a35e990317ca4dc19a0233d5dabd6272e834f
This additional commit is the cherry-pick to the 6.0.x branch http://github.com/droolsjbpm/kie-wb-common/commit/541417850
Verified on 6.0.1.ER2. Could not reproduce on 6.0.0.GA because the 'Create' new import button does not react to mouse events. But I was able to model the object with the array in 6.0.1.ER2 without the issue.