Community
Participate
Working Groups
From bug 98532 comment 10 ------------------------------- class X<T> implements List<T> { toArra| } ------------------------------- "public <T> T[] toArray(T[] a)" shouldn't be proposed because enclosing type already define a type parameter T. "public <U> U[] toArray(U[] a)" should be proposed instead.
Fixed and test added CompletionTests_1_5#test0266() -> test0268() Now, if there is a conflict between a method type parameter and another enclosing type then the name of the type parameter is changed. If the name has only one character, the next letter is proposed instead (eg. T -> U). Otherwise a number is added at the end (eg. TypeParameter -> TypeParameter2). JDT/Text doesn't use the completion proposed by JDT/Core and has the same bug. I open a new bug for this problem (bug 128980)
Verified using I20060328-0010 for 3.2M6