Community
Participate
Working Groups
v_541 class C<T> { T id(T x) { return x; } String id(String x) { return "String " + x; } } class Bound<T extends String> extends C<T> { T id(T x) { return x; } String id(String x) { return x; } } Eclipse accepts this code and generates a classfile for Bound, which contains two methods 'String id(String x)'. javac rejects method 'String id(String x)' in Bounds with: - error: id(T) is already defined in p.Bound - warning: id(java.lang.String) in p.Bound overrides id(T) in p.C; return type requires unchecked conversion
Please take care of version when entering a bug, thanks
Added MethodVerify test49
Verified in 20050330-0500