雖然當前Java語言規范并不支持Generics,但是一些組織和個人通過擴展Java語言的方式來實現Generics,其中比較聞名的有GJ,PolyJ和NextGen。Java語言標準的制定組織Java Community PRocess(JCP)也早已收到關于在Java語言中支持Generics的建議,并且一直在討論是否在Java語言支持Generics。其中,一個比較重要的里程碑是Gilad Bracha博士等在2001年提出的提議。
public class Hashtable<K,V> extends Dictionary<K,V> implements Map<K,V>, java.lang.Cloneable, java.io.Serializable { public V put(K key, V value) {……} ……. }
Gilad Bracha, Norman Cohen,Christian Kemper etc, Adding Generics to the Java Programming Language Participant draft Specification, 2001, http://java.sun.com/aboutJava/communityprocess/review/jsr014/ Paul Mingardi, Prepari8java.sun.com/developer/technicalArticles/releases/generics/">http://developer.java.sun.com/developer/technicalArticles/releases/generics/ Keith Turner, Catching more errors at compile time with Generic Java,IBM DeveloperWorks ,2001 http://www-106.ibm.com/developerworks/library/j-genjava.Html Generic Java (GJ) http://www.research.avayalabs.com/user/wadler/gj/