发明名称 Adaptive selection of programming language versions for compilation of software programs
摘要 The disclosed embodiments provide a system that facilitates the development and compilation of a software program. During operation, the system obtains a set of compilation units to be used in the software program and a version order associated with a programming language of the compilation units. Next, for each compilation unit from the set of compilation units, the system uses the version order to select a version of the programming language that is compatible with the compilation unit. The system then uses the version to compile the compilation unit.
申请公布号 US9489184(B2) 申请公布日期 2016.11.08
申请号 US201113341105 申请日期 2011.12.30
申请人 ORACLE INTERNATIONAL CORPORATION 发明人 Goetz Brian;Buckley Alexander R.
分类号 G06F9/44;G06F9/45;G06F9/455;G06F9/445 主分类号 G06F9/44
代理机构 Park, Vaughan, Fleming & Dowler LLP 代理人 Park, Vaughan, Fleming & Dowler LLP ;Suen Chia-Hsin
主权项 1. A method, comprising: at a computer system, obtaining: a set of source code modules to be used in a software program; andan ordering between one or more older versions of a programming language and one or more newer versions of the programming language, wherein one or more versions of the programming language are to be used while compiling the source code modules; and for each source code module from the set of source code modules: selecting a version of the programming language from a set of versions of the programming language by using the ordering, wherein the selected version of the programming language is compatible with the source code module, and wherein the selecting the version of the programming language that is compatible with the source code module involves:attempting to compile the source code module using a first version of the programming language in the ordering,responsive to the source code module compiling successfully with the first version of the programming language, selecting the first version of the programming language, andresponsive to the source code module not compiling successfully with the first version of the programming language, attempting to compile the source code module using a second version of the programming language following the first version of the programming language in the ordering; andcompiling the source code module with the selected version of the programming language.
地址 Redwood Shores CA US