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

Bug 329113

Summary: ArrayIndexOutOfBoundsException when project is deleted when editor is open
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ling.hao
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2010-10-29 16:40:58 EDT
ArrayIndexOutOfBoundsException is thrown in the following scenario:

1. Create two projects: A and B.
2. In project A, create "contacts.xml". This will open the Contacts sample
editor. Make a few changes and save. Leave the editor open.
3. In project B, create another file (any type). Leave this editor on top.
4. Close Eclipse.
5. Open Eclipse with the same workspace.
6. Delete project A.
7. Switch to contacts editor.

There is a related scenario where the associated file is deleted on the file
system when the Eclipse is down.
Comment 1 Konstantin Komissarchik CLA 2010-10-29 16:41:24 EDT
Improved the Sapphire editor to detect the case where the associated resource
is not accessible on editor activation. The editor will now display a single
page with the following message:

Associated resource is not accessible.

Unlike the case where the file is deleted after editor activation, the editor
will not be automatically closed.
Comment 2 Konstantin Komissarchik CLA 2010-11-15 15:48:50 EST
Due to Oracle adopter usecases, this needs to be backported to 0.1 release.
Comment 3 Konstantin Komissarchik CLA 2010-11-15 15:51:30 EST
Fixed.
Comment 4 Ling Hao CLA 2011-01-06 20:03:42 EST
Verified exception. A side note, under the same scemario, the java file throws a CoreException and displays: "Could not open the editor: The file does not exist."