Community
Participate
Working Groups
public class Overloading { public static <S extends String> S foo() { System.out.println("String"); return null; } public static <N extends Number> N foo() { System.out.println("Number"); return null; } public static void main(String[] args) { Overloading.<String>foo(); Overloading.<Number>foo(); Overloading o = new Overloading(); o.<Number>foo(); } } This class compiles and works when you use javac but eclipse3.1M5a shows an error "Duplicate method foo() in type Overloading"
*** This bug has been marked as a duplicate of 90423 ***