Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362461 - [xtend] Find references doesn't work well with unsaved state
Summary: [xtend] Find references doesn't work well with unsaved state
Status: CLOSED DUPLICATE of bug 433398
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-31 06:26 EDT by Sebastian Zarnekow CLA
Modified: 2017-09-07 13:50 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2011-10-31 06:26:24 EDT
Find references on an unnamed extension does not yield any results. It would be great if the called methods would be revealed.
Comment 1 Sven Efftinge CLA 2012-11-08 03:58:37 EST
This has been fixed in the meantime.
Comment 2 Sebastian Zarnekow CLA 2012-11-08 04:01:57 EST
class Z {
	
	extension String

		
	def Integer dummy() {
		42.substring.length
	} 
		
}

J

Just tried to fined references on the keyword extension and got an error dialog with: 'Element '_string' does not exist anymore'
Comment 3 Sebastian Zarnekow CLA 2012-11-08 04:03:57 EST
Steps to reproduce:

1) Create a new class
2) Paste the extension field and the method (don't save)
3) Find references on the keyword 'extension'
Comment 4 Sven Efftinge CLA 2012-11-08 04:20:19 EST
The problem is the unsaved state. An error dialog pops up with regular fields as well. We should at least catch the error and tell the user to save the editor for now.
Comment 5 Sebastian Zarnekow CLA 2014-07-16 04:53:24 EDT
see also bug 433398
Comment 6 Christian Dietrich CLA 2017-09-07 13:50:35 EDT

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