Patent ID: 9052966
Filing Date: 2015-06-09
Classification: G06F

Abstract:
1. A computer-implemented method of migrating dynamic language source code from a source format to a target format comprising: executing the dynamic language source code in an environment compatible with the source format; analyzing, during execution of the dynamic language source code, runtime information associated with the execution of the dynamic language source code in the environment compatible with the source format; determining a data type for an object in the dynamic language source code for the target format based on the analyzed runtime information; automatically identifying, responsive to the analyzed runtime information and the determined data type, a runtime incompatibility in the dynamic language source code with respect to the target format involving the determined data type for the object being used in a manner that is incompatible with the data type in the target format, the automatically identifying being accomplished by automatically performing a lookup, in a data structure, for a solution to the identified runtime incompatibility, the solution enabling the dynamic language source code to be made compatible with the target format by indicating a conversion technique for converting the object to a data type that is compatible with respect to the target format; recording any identified runtime incompatibility, a location of the identified runtime incompatibility in the dynamic language source code, and the determined solution to the identified runtime incompatibility in a migration data file; and automatically converting the dynamic language source code from the source format to the target format by accessing the migration data file to identify the location of the incompatible code, the determined solution, and the indicated conversion technique.