发明名称 Wholesale Replacement of Specialized Classes
摘要 Wholesale replacement of specialized classes may involve the ability to replace the auto specialization of a generic class may not be used at all and instead, a completely different, hand-written, class when the class is specialized for particular type parameterizations, according to some embodiments. The replacement class may have the same interface as the generic or auto specialized version, but it may have a completely different representation and/or implementation. A runtime environment may load the alternate version of the class, based on information identifying the alternate version, whenever the particular specialization is instantiated. The runtime may not have to load the generic or auto specialized version of the class when using the alternate version of the class.
申请公布号 US2015301809(A1) 申请公布日期 2015.10.22
申请号 US201514692601 申请日期 2015.04.21
申请人 Oracle International Corporation 发明人 Goetz Brian;Rose John R.;Govereau Paul
分类号 G06F9/45;G06F9/445 主分类号 G06F9/45
代理机构 代理人
主权项 1. A non-transitory, computer-readable storage medium storing program instructions that when executed on a computing device cause the computing device to perform: specializing a generic class for a particular type parameterization of a plurality of type parameterizations, wherein the generic class is based on a generic class declaration, wherein the generic class is specializable over the plurality of type parameterizations; wherein to specialize the generic class for the particular type parameterization, the program instructions further cause the computing device to perform: loading a class corresponding to a refinement class declaration for the generic class declaration, wherein the refinement class declaration is specific to the particular type parameterization, wherein the refinement class declaration comprises an alternate implementation for the generic class when the generic class is specialized for the particular type parameterization; and wherein the generic class is specializable for others of the plurality of type parameterizations without loading the class corresponding to the refinement class declaration.
地址 Redwood City CA US