发明名称 System and method for updating hard-coded dependencies
摘要 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.
申请公布号 US8949812(B2) 申请公布日期 2015.02.03
申请号 US201012871468 申请日期 2010.08.30
申请人 International Business Machines Corporation 发明人 Joukov Nikolai A.;Ossher Joel P.;Pfitzmann Birgit M.;Tarasov Vasily
分类号 G06F9/44;G06F9/445 主分类号 G06F9/44
代理机构 Tutunjian & Bitetto, P.C. 代理人 Tutunjian & Bitetto, P.C. ;Percello Louis J.
主权项 1. 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; andwherein 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.
地址 Armonk NY US