Java語言靜態泛型成員之機制
A Mechanism of Static Generic Type Members for the Java Programming Language
Date Issued
2006
Date
2006
Author(s)
Cheng, Li-Wei
DOI
zh-TW
Abstract
Through the research for many years, a solution for the problem of extending Java with parametric polymorphism (genericity) has released in Java 5.0. In order to have the capability of backward compatibility and the capability of interoperability with legacy code, Sun adopts the method of type erasure to achieve Java with parametric polymorphism. The method is also called Generalization. Run-time type information will be lost because of type erasure and it’s the major problem of the solution. In the thesis, we show that Java 5.0 can’t declare static variable whose type is type parameter of class due to type erasure and propose a solution for this problem.
Subjects
泛型
一般化
特殊化
一般化及共享
爪哇編譯器
Generics
Generalization
Specialization
Specialization and sharing
Java Compiler
Type
thesis
File(s)![Thumbnail Image]()
Loading...
Name
ntu-95-R93922096-1.pdf
Size
23.31 KB
Format
Adobe PDF
Checksum
(MD5):d1a5e79919d13c8ef036e3f83d91c6be