Invention Grant
- Patent Title: Decomposing a generic class into layers
-
Application No.: US14660604Application Date: 2015-03-17
-
Publication No.: US09910680B2Publication Date: 2018-03-06
- Inventor: Brian Goetz , John R. Rose
- Applicant: Oracle International Corporation
- Applicant Address: US CA Redwood City
- Assignee: Oracle International Corporation
- Current Assignee: Oracle International Corporation
- Current Assignee Address: US CA Redwood City
- Agency: Meyertons, Hood, Kivlin, Kowert & Goetzel, P.C.
- Agent Robert C. Kowert
- Main IPC: G06F9/44
- IPC: G06F9/44 ; G06F9/45 ; G06F9/445 ; G06F9/455

Abstract:
The domain of genericity of an existing generic class may be expanded to include not just reference types, but also primitive and value types even though some members of the existing class do not support the expanded genericity. A subdivided version of the class may be created that includes a generic layer including abstract versions of class members and a reference-specific layer that including non-abstract versions of class members that are abstract in the generic layer. The subdivided version of the class may also include information that indicates to which layer a class member belongs. Problematic methods (e.g., methods that have built-in assumptions regarding the domain of genericity) may be moved into the second, reference-specific, layer, thereby retaining compatibility with classes that currently instantiate or reference those methods, while still allowing use within the expanded domain of genericity.
Public/Granted literature
- US20150301825A1 Decomposing a Generic Class into Layers Public/Granted day:2015-10-22
Information query