Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316043

Summary: FileNotFoundException validating a project after deleting java files
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: Karen Butzke <karenfbutzke>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: 2.3   
Target Milestone: 3.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
example project
none
3 exception stack trace none

Description Karen Butzke CLA 2010-06-07 14:34:42 EDT
Created attachment 171315 [details]
example project

I have not been able to simplify this problem, but with the attached project and the following steps I can reproduce this every time.

1. Import the attached project and set up the JPA user library properly
2. Open the Address.java and then the Child.java in the JPA perspective
3. In the Project Explorer select Child, ChildPK, and Parent and delete them
4. Edit and save the Address.java, doesn't matter what you change.

You will get a FileNotFoundException and 2 NPEs during validation.
Cleaning the project fixes the problems.

If you don't open the Child.java file or if you close it after opening it, the exceptions do not happen.
Comment 1 Karen Butzke CLA 2010-06-07 14:35:12 EDT
Created attachment 171316 [details]
3 exception stack trace
Comment 2 Karen Butzke CLA 2010-06-25 15:22:35 EDT
This smells like a leak, I'm going to investigate along with other leaks
Comment 3 Karen Butzke CLA 2011-06-15 08:54:30 EDT
I can no longer reproduce this issue in head code