Bug 312664

Summary: Validation is not running when a file is overwritten
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt, neil.hauge
Version: 2.3   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 362711    
Bug Blocks:    

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