原始時代:ジェネリクスの誕⽣
n 1998年、オダスキー先⽣らによりGeneric Java Language
Extension誕⽣
n 2003年、J2SE5.0よりJavaにジェネリクスが導⼊
n JVMへのコンパイル時、バイトコードに型情報を残さないことで
1.4以前との「バイナリ互換性」を担保することを選択
cf. Java Generics and Collections, Chapter 5
Java implements generics via erasure, which
ensures that legacy and generic versions usually
generate identical class files, save for some
auxiliary information about types. It is possible to
replace a legacy class file by a generic class file
without changing, or even recompiling, any client
code; this is called binary compatibility.
Write once, run anywhere!!