Bug 4287

Summary: extract method: incorrect error message (1GKZ2UM)
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: UIAssignee: Dirk Baeumer <dirk_baeumer>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: Windows 2000   
Whiteboard:

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