Community
Participate
Working Groups
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.
Will be interesting to see if this is our bug or a validation framework bug.
This is our bug, the file is not being sync'd with the resource model when it is overwritten.
The dependent JDt bug won't be fixed until at least 3.7.2, if they decide to fix it at all.
The dependent bug has been fixed for M5
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