Generation of Specialized Methods Based on Generic Methods and Type Parameterizations
AssigneeOracle International Corporation
InventorsBrian Goetz, John R. Rose, Maurizio Cimadamore
Life of this patent
Estimating the term…
Loading patent…
AssigneeOracle International Corporation
InventorsBrian Goetz, John R. Rose, Maurizio Cimadamore
Estimating the term…
Generic method specialization represents the ability to specialize generic methods over various types. When implementing generic method specialization an annotated class file may include a generic method declaration that is annotated with specialization metadata indicating elements of the generic method to be adjusted during specialization. The annotated method may be usable directly as an erased method implementation (e.g., to load the method when instantiated with reference types) and may also be usable as a template for specialization. When a generic method is being prepared for execution, such as when it is first invoked during runtime, a specialization method generator function may be used to specialize the generic method based on the specialization metadata in the generic method declaration. The specialization method generator function may use the annotated generic method declaration as a template for specialization.
A non-transitory, computer-readable storage medium storing program instructions that when executed on a computing device cause the computing device to perform:
A method, comprising:
A non-transitory, computer-readable storage medium storing program instructions that when executed on a computing device cause the computing device to perform:
Dependencies are inferred from the claim text.