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

Bug 284139

Summary: [quick fix] Error creating local variable with quick fix
Product: [Eclipse Project] JDT Reporter: Andre Costa <blueser>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r, Olivier_Thomann, stephan.herrmann
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
screenshot of the error dialog none

Description Andre Costa CLA 2009-07-21 10:51:08 EDT
Build ID: 20090619-0625

Steps To Reproduce:
1. position cursor on a line with a method that returns a string that is not being assigned to any variable
2. open quick fix dialog with CTRL+1 and choose "Assign statement to new local variable"
3. error dialog appears with message "First position: 'string' at 15549, this position: '' at 15542". The new variable assignment is created, though.


More information:
This problem doesn't occur all the time (actually it's the first time I've seen it).
Comment 1 Andre Costa CLA 2009-07-21 10:52:31 EDT
Created attachment 142141 [details]
screenshot of the error dialog
Comment 2 Olivier Thomann CLA 2009-07-21 10:55:42 EDT
Move to JDT/Text
Comment 3 Stephan Herrmann CLA 2009-07-21 11:42:41 EDT
Looks like a duplicate of bug 195834, no?
Comment 4 Markus Keller CLA 2009-07-28 14:01:16 EDT
> Looks like a duplicate of bug 195834, no?

Yep.

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