class DateInterval extends Pair<LocalDate>{
public LocalDate getSecond(){return (Date)super.getSecond().clone();}
}
LocalDate getSecond()//defined in DateInterval
Object getSecond()//overrides the method defined in Pair to call the first method
翻译泛型方法(编译器吧?)在虚拟机中用参数类型和返回类型确定一个方法,但是编译器在检查到两个相同签名(函数名和方法列表,不包括返回类型)的方法时是进行重载的,因此编译器可能产生两个仅返回类型不同的方法字节码,而不允许用户定义这样的两个不同方法(会重载)