Invention Grant
US08225294B2 Method and apparatus for expressing and checking relationships between types
有权
用于表达和检查类型之间的关系的方法和装置
- Patent Title: Method and apparatus for expressing and checking relationships between types
- Patent Title (中): 用于表达和检查类型之间的关系的方法和装置
-
Application No.: US11412662Application Date: 2006-04-27
-
Publication No.: US08225294B2Publication Date: 2012-07-17
- Inventor: Sukyoung Ryu , Eric E. Allen , Victor M. Luchangco , Joseph J. Hallett, III , Samuel Y. Tobin-Hochstadt
- Applicant: Sukyoung Ryu , Eric E. Allen , Victor M. Luchangco , Joseph J. Hallett, III , Samuel Y. Tobin-Hochstadt
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle America, Inc.
- Current Assignee: Oracle America, Inc.
- Current Assignee Address: US CA Redwood Shores
- Agency: Park, Vaughan, Fleming & Dowler LLP
- Main IPC: G06F9/44
- IPC: G06F9/44

Abstract:
One embodiment of the present invention provides a system for generating executable code. During operation, the system receives source code, wherein the source code can include declarations for types and operations, wherein the type declarations may be parameterized, and wherein the source code may specify subtyping relationships between declared types. Next, the system compiles or interprets the source code to produce executable code, wherein the type parameters may be instantiated by different types during execution, and wherein the result of executing operations may depend upon the instantiations of the type parameters. While compiling or interpreting the source code, the system checks the types and operations in the source code to ensure that the executable code generated is type-safe, and hence will not generate type errors during execution.
Public/Granted literature
- US20070256060A1 Method and apparatus for expressing and checking relationships between types Public/Granted day:2007-11-01
Information query