Community
Participate
Working Groups
Version: 3.1.1 Build id: M20050929-0840 Version: 3.2M2 Build id: I20050923-1000 Consider the following Code example: ---------------------------------------------------- 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"); } } ---------------------------------------------------- Eclipse gives an error on the @Override annotation "the method add(Number) of type NumericArray<T> must override a superclass method" together with the marker "overrides Array<T>.add" If add is called on an instance of e.g. NumericArray<Integer>, then Eclipse calls Array<T>.add, whereas java version 1.5.0_05 calls NumericArray<T>:add. Summary: - Javac 1.5.0_05 considers NumericArray.add as an override - Eclipse compiler considers NumericArray.add as an overload - Eclipse override marker considers NumericArray.add as an override
Added MethodVerifier test073 Released into HEAD and the 3.1.2 branch
Verified for 3.1.2 using build M20060109-1200.
Verified for 3.2 M4 using build I20051215-1506.