In the generic section of 《Java Core Technology Volume 1》, the author mentions the decompilation results of the bridge method. However, the main test of jad, luyten and javap did not get the same results as the author. I want to know how to really prove the existence of the bridge method through the decompilation tool. My native language is not English. If the description is unclear, please forgive me. The relevant code and results are as follows:
I tried javap, jad and luyten these decompilation tools
public class Pair<T> {
private T first;
private T second;
public Pair() {
}
public Pair(T first, T second) {
this.first = first;
this.second = second;
}
public T getFirst() {
return first;
}
public void setFirst(T first) {
this.first = first;
}
public T getSecond() {
return second;
}
public void setSecond(T second) {
this.second = second;
}
}
import java.time.LocalDate;
public class DateInterval extends Pair<LocalDate> {
}
I want to get the same result in the original book, I can see the decompilation result of the bridge method.decompile result by javap