虽然当前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/