generic source method와 bridge method

erasure 뒤 interface dispatch를 compiler가 어떻게 보존하는지 비교한다.

length(String)

developer가 작성한 typed implementation

source

length(Object)

Object를 String으로 cast하는 synthetic bridge

generated
실패raw caller가 Integer를 넣으면 bridge checkcast에서 ClassCastException

핵심: ACC_BRIDGE·ACC_SYNTHETIC은 정상 compiler 구조이며 raw type이 문제다.