Bug 4287 - extract method: incorrect error message (1GKZ2UM)
Summary: extract method: incorrect error message (1GKZ2UM)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 23:09 EDT by Dirk Baeumer CLA
Modified: 2002-02-08 03:19 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:09:11 EDT
ak (10/2/2001 4:08:48 PM)
package df;
import a.a.*;
import df.*;
class B {
public A theA;
int f(int u){
for (;;){
	/*[*/if (5 > 6)
		return 4;/*]*/
else 			if (5 > 6)
		return 4;
		break;
	}
	}
}

select and extract (from /*[*/ to /*]*/). 
you get: 'beginning of selection contains characters that do not belong to the selected statement(s)'
you get this (incorrect) message even if you do not select the comments;
NOTES:
Comment 1 Dirk Baeumer CLA 2002-01-25 10:54:18 EST
In build 20020124 you get the error message: Selection only covers part of a 
statement or expression. Extend selection using the "Expand Selection With" 
actions from the Edit menu".

Fixed in build > 20020124