Bug 67422 - Index Out Of Bound exception while copy/paste in Java editor
Summary: Index Out Of Bound exception while copy/paste in Java editor
Status: RESOLVED DUPLICATE of bug 66763
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-16 05:50 EDT by Frederic Fusier CLA
Modified: 2004-06-16 07:07 EDT (History)
0 users

See Also:


Attachments
Snapshots Before/After paste + Error dialog (45.82 KB, application/octet-stream)
2004-06-16 05:54 EDT, Frederic Fusier CLA
no flags Details
Stack trace when error occured (63.73 KB, text/plain)
2004-06-16 05:54 EDT, Frederic Fusier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Fusier CLA 2004-06-16 05:50:11 EDT
Using RC2.

I got an Index Out Of Bounds exception while pasting text in java editor.
I'll attach captures of initial text, error dialog and crazy text I got after
the paste + stack trace logged in console...

The text I pasted was:
	String encoding = "UTF-8".equals(vmEncoding) ? "Cp1252" : "UTF-8";
over initial one which was:
	String encoding = "UTF-8";
(see initial method code I captured and I'll attach to this bug...)

After, I was not able to revert file although the file was considered as dirty
(* in tab + question if I wanted to save when I closed it...).
I cannot close the file either, nor the Java perspective...
The only solution was to close/restart eclipse session...
Comment 1 Frederic Fusier CLA 2004-06-16 05:54:18 EDT
Created attachment 12220 [details]
Snapshots Before/After paste + Error dialog
Comment 2 Frederic Fusier CLA 2004-06-16 05:54:59 EDT
Created attachment 12221 [details]
Stack trace when error occured
Comment 3 Dani Megert CLA 2004-06-16 07:07:49 EDT

*** This bug has been marked as a duplicate of 66763 ***