Bug 312664 - Validation is not running when a file is overwritten
Summary: Validation is not running when a file is overwritten
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 362711
Blocks:
  Show dependency tree
 
Reported: 2010-05-12 12:16 EDT by Karen Butzke CLA
Modified: 2012-02-09 13:03 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2010-05-12 12:16:00 EDT
I have 2 JPA projects.
Project A has 1 class with a JPA validation error:
@Entity
public class Foo {
	@Id
	private int id;
	@Id
	private String name;

}

Project B has 1 class:
public class Foo {}

Make sure the Project B Foo java editor is not open.  Copy Foo.java from Project A to Project B overwriting it.  Notice that the validation error does not appear on Project B.  Run a project clean and it will appear.
Comment 1 Neil Hauge CLA 2010-06-03 17:27:06 EDT
Will be interesting to see if this is our bug or a validation framework bug.
Comment 2 Karen Butzke CLA 2011-11-02 10:58:29 EDT
This is our bug, the file is not being sync'd with the resource model when it is overwritten.
Comment 3 Karen Butzke CLA 2011-11-07 08:16:15 EST
The dependent JDt bug won't be fixed until at least 3.7.2, if they decide to fix it at all.
Comment 4 Karen Butzke CLA 2011-12-20 12:22:22 EST
The dependent bug has been fixed for M5
Comment 5 Jolene Moffitt CLA 2012-02-09 13:03:53 EST
Verified in Build I-3.4.0-20120207004801 

Verified when you copy a class with an error into project and overwrite a class that had no errors validation is run and the error appears.  See the link to
view test steps for verification.  http://wiki.eclipse.org/Dali_3.2_M5