Bug 1050851 - java.util.Collection subclasses used as import suggestions are not managed well
Summary: java.util.Collection subclasses used as import suggestions are not managed well
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Data Modeler
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ER1
: 6.0.1
Assignee: Walter Medvedeo
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-09 08:51 UTC by Walter Medvedeo
Modified: 2014-08-06 20:03 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:03:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screen1 (260.73 KB, image/jpeg)
2014-01-09 08:51 UTC, Walter Medvedeo
no flags Details
Screen2 (233.44 KB, image/jpeg)
2014-01-09 08:51 UTC, Walter Medvedeo
no flags Details

Description Walter Medvedeo 2014-01-09 08:51:17 UTC
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)

Comment 1 Walter Medvedeo 2014-01-09 08:51:57 UTC
Created attachment 847539 [details]
Screen2

Comment 3 Walter Medvedeo 2014-01-09 12:37:18 UTC
The following commit solves the issue in master branch:

https://github.com/droolsjbpm/kie-wb-common/commit/eb4a35e990317ca4dc19a0233d5dabd6272e834f

Comment 4 Walter Medvedeo 2014-01-13 17:24:39 UTC
This additional commit is the cherry-pick to the 6.0.x branch

http://github.com/droolsjbpm/kie-wb-common/commit/541417850

Comment 5 Marek Baluch 2014-03-13 08:29:55 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.