Atitit. Upgrade API code compatibility design guidelines after upgrading the class library framework

Source: Internet
Author: User

Atitit. after upgrading the class library framework API Code Compatibility Design Guide

1. increase The API directly, the version number is added 1 above the comment

2. Discard APIs, use your ideas @dep1

3. Modify the API,1

4. Modify dependent import, ya Yao Add file mode. Maintain compatibility. 1

5. preferred to select the same file in the changes, because the file more than a bad management, the compilation speed is also slow ... 1

5.1. Advantages and disadvantages of adding file patterns 2

1. Increase The API directly, the version number is added on the comment 2. obsolete API, use ideas @dep 3. Modify the API,

first , add an API method , attachment ver ... similar method_v2q35

if too many , you should add a file mode v2to maintain compatibility. The version number is reflected in the file name.

4. Modify dependent import, ya Yao Add file mode. Maintain compatibility.

Author :: ★ (Attilax) >>>   nickname : Span style= "font-family: the song Body;" > old wow Paw   (   attilax akbar  al rapanui  Attilax   Baroque   Alpha   Rapa Nui   )   Kanji name: Ayron, Email:[email protected]

reprint Please indicate source: http://www.cnblogs.com/attilax/

5. preferred to select the same file in the changes, because the file is not good management, the compilation speed is also slow ...

5.1. advantages and disadvantages of adding file patterns

, the document compatibility is also compromised. There is no way, or it will break the code compatibility.

Atitit. Upgrade API code compatibility design guidelines after upgrading the class library framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.