×

Returning a runtime type loaded from an archive in a module system

  • US 10,394,528 B2
  • Filed: 03/30/2016
  • Issued: 08/27/2019
  • Est. Priority Date: 03/30/2016
  • Status: Active Grant
First Claim
Patent Images

1. A non-transitory computer readable medium comprising instructions which, when executed by one or more hardware processors, cause performance of operations comprising:

  • identifying, by a class loader implemented in a first runtime environment, an archived runtime type loaded into an archive from a module source;

    identifying a particular package associated with the archived runtime type;

    determining whether the particular package is defined to any runtime module, of a module system, that is defined to (i) the class loader or (ii) any class loader in a class loader hierarchy to which the class loader delegates, in the first runtime environment;

    responsive at least to determining that the particular package is not defined to any runtime module that is defined to (i) the class loader or (ii) any class loader in the class loader hierarchy to which the class loader delegates, in the first runtime environment;

    refraining from loading any runtime type based on the archived runtime type from the archive;

    identifying, by the class loader implemented in a second runtime environment, the archived runtime type loaded into the archive from the module source;

    determining whether the particular package is defined to any runtime module, of the module system, that is defined to (i) the class loader or (ii) any class loader in the class loader hierarchy to which the class loader delegates, in the second runtime environment;

    responsive at least to determining that the particular package is defined to a runtime module that is defined to (i) the class loader or (ii) any class loader in the class loader hierarchy to which the class loader delegates, in the second runtime environment;

    returning directly or indirectly, by the class loader, a runtime type loaded based on the archived runtime type from the archive; and

    wherein runtime type visibility is enforced by the module system based at least in part on readability of one or more runtime modules as defined in the module system.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×