æ ‡ç¾ï¼š java generics reflection types
public class superA<TypeX> { public superA(){ TypeX var1 = new ....... } }
想象一下上é¢çš„代ç ï¼Œå¦‚æžœæˆ‘æƒ³åœ¨æž„é€ å‡½æ•°ä¸æ”¶åˆ°ä»»ä½•å…¶ä»–ä¿¡æ¯ä¹‹å‰åˆ›å»ºè¯¥ç±»åž‹çš„å˜é‡ï¼Œå¦‚何找到TypeX的类型?