Community
Participate
Working Groups
I20050610-1757 (3.1RC2) Extract Local Variable, Extract Method and Introduce Parameter don't add type arguments when extracting 'this' of a generic type: Select 'this' in the class below => the type is always just MyArrayList. Expected: MyArrayList<E>. class MyArrayList<E> extends ArrayList<E> { void inspect() { for (Iterator<E> iter= this.iterator(); iter.hasNext();) { iter.next(); } } }
Very minor since normally clients will not extract this. Markus, JDT core returns a generic type binding here (the problem we discussed). Right ?
Correct, depends on bug 80472.
The fix for bug 80472 has resolved this issue. Added regression test for Extract Local Variable.