Community
Participate
Working Groups
20060110 The example in bug 111350 shows that NumericArray:add overrides Array:add - Do a code assist in A, you get 2 proposals add(Integer), add(Number) - I think only add(Number) should be shown. add(Integer) is not available here package p; public class A { public static void main(String[] args) { new NumericArray<Integer>().|code assist } } class Array<T> { public void add(T t){ System.out.println("Array<T>:add"); } } class NumericArray<T extends Number> extends Array<T> { @Override public void add(Number n){ System.out.println("NumericArray<T>:add"); } }
Created attachment 50786 [details] Proposed fix
Released for 3.3 M3. Tests added CompletionTests_1_5#test0291() -> test0293()
Verified for 3.3 M3 using warm-up build I20061030-0010.