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

Bug 42248

Summary: Encapsulate field refactoring broken
Product: [Eclipse Project] JDT Reporter: Randy Faust <rfaust>
Component: UIAssignee: Dirk Baeumer <dirk_baeumer>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Randy Faust CLA 2003-08-29 08:02:51 EDT
Using the encapsulate field refactoring is showing errors is returning:
"XXX.java contains compiler errors. This may affect field access update." 
However XXX.java contains no compiler errors. Other refactorings which would 
effect XXX.java work fine, such as the rename refactoring on the field of my 
choosing works fine or the move refactoring when moving a static to XXX.java. 
It should be noted that XXX.java did have compiler errors some time recently 
when I was making code modifications, but currently shows nothing other than 2 
warnings for unused local methods.
Comment 1 Dirk Baeumer CLA 2003-08-29 08:18:19 EDT
Can you please provide a test case
Comment 2 Dirk Baeumer CLA 2003-10-06 06:21:26 EDT
This may be related to the fact that simple name used as labels don't have 
bindings. Have to check if we check all simple names for bindings.
Comment 3 Dirk Baeumer CLA 2004-03-22 14:55:57 EST
I checked the code and label are not tested for bindings. I suspect that the 
bug is related to bug 52773

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