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

Bug 247136

Summary: [outline] ArrayIndexOutOfBoundsException occurs when a node is moved to its parent by drag & drop
Product: [WebTools] WTP Source Editing Reporter: Naoki Akiyama <n_akiyama>
Component: wst.dtdAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED WONTFIX QA Contact: David Carver <d_a_carver>
Severity: normal    
Priority: P3 CC: hinaba, nsand.dev, thatnitind
Version: 3.0Flags: nsand.dev: review+
Target Milestone: 3.2.5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 247124    
Bug Blocks:    
Attachments:
Description Flags
sample patch
none
Combined Patch of 247124 and 247136
none
mylyn/context/zip none

Description Naoki Akiyama CLA 2008-09-12 05:41:56 EDT
Created attachment 112401 [details]
sample patch

Build ID: Eclipse: I20080617-2000, WTP: 20080616152118

Steps To Reproduce:
An error occurs when a node is moved to its parent by drag & drop in Outline view.

1. Open the DTD file of the following source.
   <!ELEMENT Ele1 (CE1,CE2))>
2. Display Outline view.
3. Select the CE1 node.
4. Move it to the the [Sequence (,)] node by drag & drop. 
  --> Then, the text after Ele1 is deleted.
      <!ELEMENT Ele1 

1. Open the DTD file of the following source.
   <!ELEMENT Ele1 (CE1,CE2))>
2. Display Outline view.
3. Select the CE1 node and the CE2 node.
4. Move them to the the [Sequence (,)] node by drag & drop. 
  --> The following error message is displayed. 
      An error has occurred. See error log for more details.
      java.lang.ArrayIndexOutOfBoundsException

More information:
I attached a sample patch.
Comment 1 David Carver CLA 2009-03-26 21:00:55 EDT
targeting for 3.1M7.
Comment 2 David Carver CLA 2009-10-10 12:58:00 EDT
This is related to 247124 as well.
Comment 3 David Carver CLA 2009-10-16 11:50:30 EDT
Created attachment 149772 [details]
Combined Patch of 247124 and 247136

A combined patch for 247124 and 247136 to address dnd errors.
Comment 4 David Carver CLA 2009-10-16 11:50:36 EDT
Created attachment 149773 [details]
mylyn/context/zip
Comment 5 David Carver CLA 2009-10-16 11:51:49 EDT
Nick, can you review the combined patch and see if you see any gotchas.
Comment 6 Nick Sandonato CLA 2009-10-19 13:09:23 EDT
Looks fine. No gotchas noticed.
Comment 7 Nitin Dahyabhai CLA 2011-04-27 23:04:02 EDT
Nick, please go ahead and put this into 3.3RC1 if you still approve.  We'll look at a 3.2.4+ patch after 3.2.4 GAs.
Comment 8 Nitin Dahyabhai CLA 2011-10-20 14:08:11 EDT
Not severe enough to warrant PMC review.  Resolving since we have a separate bug for the more current branches.