System and method for updating hard-coded dependencies
AssigneeInternational Business Machines Corporation
InventorsNikolai A. Joukov, Joel P. Ossher, Birgit M. Pfitzmann, Vasily Tarasov
Life of this patent
Estimating the term…
Abstract
A system and method includes discovering one or more instances of external resource access by statically analyzing application code. One or more locations of constants are identified in the application code and a configuration repository that specify addresses of discovered instances of external resource access. The application code and the configuration repository are updated to change values of the constants to enable migration.
Claims25
A method, comprising:
- discovering, by a processor, one or more instances of external resource access by statically analyzing application code;
- specifying, by the processor, addresses of the discovered instances of external resource access;
- identifying, by the processor, one or more addresses of one or more constants in the application code and a configuration repository of the specified addresses of discovered instances of external resource access, the one or more constants being stored in a non-transitory computer readable storage medium;
- updating, by the processor, one or more values of the one or more constants in the application code and the configuration repository;
- wherein the application code is updated by replacing at least one of the one or more values of the one or more constants with one or more updated values of the one or more constants;
- and
- wherein the updating includes matching one or more addresses of the external resources with a table mapping the one or more addresses of the one or more constants to one or more updated constant addresses;
- and
- using, by the processor, the one or more updated values of the one or more constants in the application code and the configuration repository in current or future migrations.
A non-transitory computer readable storage medium comprising a computer readable program, wherein the computer readable program when executed on a computer causes the computer to perform the steps of:
- discovering one or more instances of external resource access by statically analyzing application code;
- specifying addresses of the discovered instances of external resource access;
- identifying one or more addresses of one or more constants in the application code and a configuration repository of the specified addresses of discovered instances of external resource access;
- updating one or more values of the one or more constants in the application code and the configuration repository;
- wherein the application code is updated by replacing at least one of the one or more values of the one or more constants with one or more updated values of the one or more constants;
- and
- wherein the updating includes matching one or more addresses of the external resources with a table mapping the one or more addresses of the one or more constants to one or more updated constant addresses;
- and
- using the one or more updated values of the one or more constants in the application code and the configuration repository in current or future migrations.
A system, comprising:
- a processor;
- a non-transitory computer readable medium comprising a computer readable program that executes a tool, wherein the computer readable program when executed by the processor causes the tool to perform the steps of:
- discovering one or more instances of external resource access by statically analyzing application code;
- specifying addresses of the discovered instances of external resource access;
- identifying one or more addresse of one or more constants in the application code and a configuration repository of the specified addresses of discovered instances of external resource access;
- updating one or more values of the one or more constants in the application code and the configuration repository;
- wherein the application code is updated by replacing at least one of the one or more values of the one or more constants with one or more updated values of the one or more constants;
- and
- wherein the updating includes matching one or more addresses of the external resources with a table mapping the one or more addresses of the one or more constants to one or more updated constant addresses;
- and
- using the one or more updated values of the one or more constants in the application code and the configuration repository in current or future migrations.
Dependencies are inferred from the claim text.