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

Bug 355362

Summary: [Rename refactoring] Xtext refactoring breaks Java Rename Refactoring
Product: [Modeling] TMF Reporter: Sven Efftinge <sven.efftinge>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 Flags: sven.efftinge: indigo+
Version: 2.1.0   
Target Milestone: SR2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sven Efftinge CLA 2011-08-22 06:56:41 EDT
I've installed the latest nightly. And get the following exception whenever I try to trigger a rename refactoring on a Java Element.

java.lang.UnsupportedOperationException: getReferenceDescriptions()
	at org.eclipse.xtext.builder.clustering.CopiedResourceDescription.getReferenceDescriptions(CopiedResourceDescription.java:74)
	at org.eclipse.xtext.ui.editor.findrefs.DefaultReferenceFinder.findIndexedReferences(DefaultReferenceFinder.java:188)
	at org.eclipse.xtext.ui.editor.findrefs.DefaultReferenceFinder.findIndexedReferences(DefaultReferenceFinder.java:67)
	at org.eclipse.xtext.ui.editor.findrefs.DefaultReferenceFinder.findAllReferences(DefaultReferenceFinder.java:61)
	at org.eclipse.xtext.ui.refactoring.impl.ReferenceUpdaterDispatcher.createReferenceUpdates(ReferenceUpdaterDispatcher.java:53)
	at org.eclipse.xtext.ui.refactoring.impl.RenameElementProcessor.checkFinalConditions(RenameElementProcessor.java:213)
	at org.eclipse.xtext.ui.refactoring.impl.AbstractProcessorBasedRenameParticipant.checkConditions(AbstractProcessorBasedRenameParticipant.java:112)
	at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.checkFinalConditions(ProcessorBasedRefactoring.java:257)
	at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:85)
	at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:121)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
	at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Comment 1 Sven Efftinge CLA 2011-08-23 15:42:43 EDT

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