发明授权
- 专利标题: Structural representation of generic type variable in a nominally typed virtual machine
-
申请号: US15332277申请日: 2016-10-24
-
公开(公告)号: US10275226B2公开(公告)日: 2019-04-30
- 发明人: Maurizio Cimadamore , Brian Goetz
- 申请人: ORACLE INTERNATIONAL CORPORATION
- 申请人地址: US CA Redwood Shores
- 专利权人: ORACLE INTERNATIONAL CORPORATION
- 当前专利权人: ORACLE INTERNATIONAL CORPORATION
- 当前专利权人地址: US CA Redwood Shores
- 代理机构: Hickman Palermo Becker Bingham LLP
- 主分类号: G06F9/445
- IPC分类号: G06F9/445 ; G06F8/30 ; G06F9/455 ; G06F9/448 ; G06F8/41
摘要:
Techniques herein process type variables to transform type parameters (TPs) of generic classes. In an embodiment, a computer stores a generic class attribute associated with a definition of a generic class. The generic class attribute includes a type variable declaration (TVD) for each TP. Each TVD is associated with usage entries (VUEs) within the definition. Each VUE indicates an actual type for use, within a portion of the definition, as the TP represented by the VUE. Based on how a particular portion of the definition uses a particular TP represented by a particular TVD of a particular VUE, the computer determines whether the particular VUE is to be assigned to a particular type or erased. In response to determining that the particular VUE is to be erased, the computer configures the particular VUE to indicate erasure. Otherwise, the computer assigns the particular type to the particular VUE.
公开/授权文献
信息查询