×

Method of implementing parameterized types to be compatible with existing unparameterized libraries

  • US 6,018,628 A
  • Filed: 06/16/1998
  • Issued: 01/25/2000
  • Est. Priority Date: 06/16/1998
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for generating code using parameterized classes, such that the code is compatible with existing compiled code that was generated using unparameterized classes, the method comprising the steps of:

  • receiving parameterized source code that contains variables that belong to a plurality of classes which are defined by supplying parameter values to a parameterized class definition for one of said unparameterized classes defined in said existing compiled code;

    performing static type checking on said parameterized source code to determine if incompatible type assignments exist between variables that belong to said plurality of classes and values assigned to said variables;

    if no incompatible type assignments exist, thenperforming a homogeneous translation on the parameterized source code to generate unparameterized class code; and

    compiling the unparameterized class code to produce code that is compatible with the existing compiled code.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×