Nova Patents
EP0546684A2

Method stubs for redispatch.

Abstract

A method, system and program for allowing an application designed to use static method calls to manipulate objects whose methods are only available through dynamic calls without modifying the binary image of the application. A SOM compiler generates class definitions and generates a redispatch stub for each method defined in a class. A redispatch stub is a short sequence of instructions with an identical calling sequence as its corresponding method. This gives the class' dispatch enough information to determine the correct method procedure in a dynamic manner. The dispatch function employs the redispatch stub to call the appropriate method procedure and return any return value to the calling application via the redispatch stub. Redispatch stubs allows a class with a definition that can vary at runtime to be used by an application that was designed for statically defined classes.

EP0546684A2, drawing sheet 1
Sheet 1 of 28

Term

Term ended

Projected expiry passed 9 November 2012, 13.9 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

9 claims: 2 independent, 7 dependent

  1. 1
    An object oriented data processing system having means to generate method stubs for dynamic dispatch of one or more static methods, comprising:(a) storage means for storing the one or more static methods;(b) compiler means for generating class definitions and redispatch stubs for the one or more static methods;and (c) dispatch function means for processing the redispatch stub and transferring control to the static method associated with the redispatch stub.
  2. 6
    A method of operating an object oriented data processing system including generating method stubs for dynamic dispatch of one or more static methods, comprising the steps of:(a) storing the one or more static methods;(b) generating class definitions and redispatch stubs for the one or more static methods;and (c) processing the redispatch stub and transferring control to the static method associated with the redispatch stub.