請用此 Handle URI 來引用此文件:
http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/40736
標題: | 考量參數化型別參數之JAVA函式重載機制 A Java Method Overloading Mechanism For Parameterized Type Parameters |
作者: | Tsung-Han Hsien 謝宗翰 |
指導教授: | 陳俊良 |
關鍵字: | 泛型,型別化參數,函式重載, Generic,Parameterized Type Parameters,method overloading, |
出版年 : | 2008 |
學位: | 碩士 |
摘要: | Java在Java5.0版加入了泛型的機制,為了顧及新舊Java語言版本的相容性與新舊程式碼交互使用,Sun採用了型別擦拭法去實現泛型機制。然而使用擦拭法去實現泛型所產生的最大問題是執行期間與泛型的相關的型別資訊將會遺失,這問題讓函式重載無法在使用泛型型別參數的函式使用,因此我們對函式重載的問題提出了可行的解法,並且實現在Java6.0上。 Java 5.0 added many new features, including parametric polymorphism (genericity). In order for compatibility, Java adopted the type erasure to achieve the generic mechanism, however run-time type information will be lost after type erasure. This causes that method overloading doesn’t work for methods with generic type parameters. In this thesis, we try to solve this problem. |
URI: | http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/40736 |
全文授權: | 有償授權 |
顯示於系所單位: | 資訊工程學系 |
文件中的檔案:
檔案 | 大小 | 格式 | |
---|---|---|---|
ntu-97-1.pdf 目前未授權公開取用 | 1.08 MB | Adobe PDF |
系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。