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

Bug 257153

Summary: Internal Error running "create method" quick fix
Product: [Eclipse Project] JDT Reporter: John Arthorne <john.arthorne>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Log file
none
The file being edited in the state before applying the quick fix. none

Description John Arthorne CLA 2008-12-01 20:25:20 EST
Created attachment 119229 [details]
Log file

I20081119-1600

I got this error while running the "create method" quick fix in a Java editor. I had just finished typing in a reference to non-existent method "publishRepositoryReferences() on line 234 of SimpleProfileRegistry.java (I will atach it). An error marker appeared because the method doesn't exist. I hit Ctrl+1 and Enter to apply the "create method" quick fix. The quick fix appeared to work correctly (the new method was added in the right place), but there were several errors in the log. I tried to immediately undo and re-apply to see if it was reproducible, but I could not reproduce. Complete log attached:

org.eclipse.core.runtime.CoreException: First position: '' at 8141, this position: 'publishRepositoryReferences' 

at 8084
	at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.performChange
Comment 1 John Arthorne CLA 2008-12-01 20:27:16 EST
Created attachment 119230 [details]
The file being edited in the state before applying the quick fix.
Comment 2 Markus Keller CLA 2008-12-02 05:49:21 EST

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