Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329113 - ArrayIndexOutOfBoundsException when project is deleted when editor is open
Summary: ArrayIndexOutOfBoundsException when project is deleted when editor is open
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-29 16:40 EDT by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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."