Bug 4165 - extract method: missing line number in error msg (1GJJ2UN)
Summary: extract method: missing line number in error msg (1GJJ2UN)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 23:07 EDT by Dirk Baeumer CLA
Modified: 2002-03-11 11:06 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2001-10-10 23:07:08 EDT
AK (9/4/2001 2:17:02 PM)
	public class A {
	void m(int i) {
		for (;;) {
			//---
			if (i == 0)
				continue;	
			if (i != 5)	
				continue;	
			//---	
		}
	}
	}

	1. extract the select fragment
	you get 2 error saying that '...selection...continue...target...not selected'
	two exactly same messages - line numvers would make them more informative.
	
NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 17:35:28 EST
134

Comment 2 Dirk Baeumer CLA 2002-02-27 08:44:15 EST
The idea is to provide a context to show the source to the user
Comment 3 Dirk Baeumer CLA 2002-03-11 11:06:29 EST
Whenever possible we are no using a context to give a hint to the user what has 
caused the problem. Unfortunatelly we can only highlight one text portion (see 
http://bugs.eclipse.org/bugs/show_bug.cgi?id=11096).

For the described test case we only generate one error message now.

Fixed in build > 20020307.