Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333730 - Compilation error when creating entity attributes of type java.sql.Date and java.util.Date
Summary: Compilation error when creating entity attributes of type java.sql.Date and j...
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: Diagram Editor (show other bugs)
Version: 0.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Petya Sabeva CLA
QA Contact: Stefan Dimov CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-07 04:01 EST by Krum Bakalsky CLA
Modified: 2011-05-04 14:25 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot (290.55 KB, image/jpeg)
2011-01-07 04:01 EST, Krum Bakalsky CLA
no flags Details
Avoid packages import statement collision (3.18 KB, patch)
2011-01-25 11:00 EST, Petya Sabeva CLA
stefan.dimov: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krum Bakalsky CLA 2011-01-07 04:01:33 EST
Created attachment 186251 [details]
Screenshot

Hi,

I am using 64-bit Windows 7 Ultimate, with Sun Java 1.6.0_20 JDK installed. I
have installed the latest "Eclipse IDE for Java EE developers" for "Windows 64
Bit" platform, it is Helios.
I have installed the latest JPA Diagram Editor from its dedicated Eclipse page:
http://wiki.eclipse.org/JPA_Diagram_Editor_Project.


Scenario to reproduce:
0. I have created a simple EJB 3.0 project, and added a JPA 1.0 facet to it.
1. I opened the diagram, and created a new entity class
2. I added to this entity two persistent attributes - one of type java.sql.Date, and the other of type java.util.Date. 

Problem: I got compilation error in my IDE with the following error message: "The import java.util.Date collides with another import statement". You can take a look at the attached screenshot. The problem is that, the diagram inserts import statements for each attribute type, but in this particular case they collide.
Comment 1 Petya Sabeva CLA 2011-01-25 11:00:48 EST
Created attachment 187528 [details]
Avoid packages import statement collision
Comment 2 Stefan Dimov CLA 2011-01-26 10:19:18 EST
Patch committed ...
Comment 3 Stefan Dimov CLA 2011-02-08 10:18:00 EST
The fix was submitted in the timeframe of M5, but the JPA Diagram Editor wasn't integrated in PDE build of WTP before the M5 release date, so I'm retargeting this bug to M6.
Comment 4 Jolene Moffitt CLA 2011-05-04 14:25:51 EDT
Verified in Build I-3.3.0-20110414085808

Verified when you use java.util.Date and java.sql.Date for attriutes within an Entity the colliding error does not appear.  See the link to view test
steps for verification.  http://wiki.eclipse.org/Dali_3.0_M6