发明名称 A METHOD OF IMPLEMENTING PARAMETERIZED TYPES TO BE COMPATIBLE WITH EXISTING UNPARAMETERIZED LIBRARIES
摘要 A method and apparatus for generating code using parameterized classes which is compatible with an existing class library that was previously generated using unparameterized classes is disclosed. According to the method, parameterized source code is received that contains variables that belong to a plurality of types which are defined by supplying parameter values to a parameterized class definition. Static type checking is performed on the parameterized source code to determine if any incompatible type assignments exist between variables that belong to the plurality of types and values assigned to the variables. If no incompatible type assignments exist, then a homogeneous translation is performed on the parameterized source code to generate unparameterized class code. The unparameterized class code is then compiled to produce code that is compatible with the existing class library that was generated using unparameterized classes.
申请公布号 WO9966396(A1) 申请公布日期 1999.12.23
申请号 WO1999US13446 申请日期 1999.06.16
申请人 SUN MICROSYSTEMS, INC. 发明人 STOUTAMIRE, DAVID, P.
分类号 G06F9/44;G06F9/45;(IPC1-7):G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项
地址