Bug 22054

Summary: Can't extract local variable from super send [refactoring]
Product: [Eclipse Project] JDT Reporter: Peter Burka <peter_burka>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akiezun, hallorant, mark_dixon
Version: 2.0   
Target Milestone: 2.1 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Peter Burka CLA 2002-07-30 15:29:55 EDT
- Import the following Java class into Eclipse:

public class Foo {
    public String toString() {
    	return super.toString() + new Integer(1).toString();	
    }
}

- Select 'super.toString()' and choose 'Extract local variable'
- An error message appears saying: 'Cannot extract this kind of expression 
into a local variable'.
Comment 1 Adam Kiezun CLA 2002-08-20 11:36:59 EDT
this is caused by the fact that calling resolveTypeBinding() on this 
SuperMethodInvocation returns null.

i created a test for this and added to our suite (it's disabled until we have a 
fix here)
Comment 2 Timothy Halloran CLA 2002-08-29 13:18:56 EDT
*** Bug 22951 has been marked as a duplicate of this bug. ***
Comment 3 Olivier Thomann CLA 2002-09-03 16:29:21 EDT
*** Bug 23055 has been marked as a duplicate of this bug. ***
Comment 4 Olivier Thomann CLA 2002-09-04 13:11:00 EDT
Fixed and released in 2.1 stream.
Comment 5 David Audel CLA 2002-09-19 04:53:41 EDT
Verified.
Comment 6 Olivier Thomann CLA 2002-09-19 11:05:22 EDT
Regression test added (test0380)