purenothingform
V2EX  ›  Java

如何评价 SLF4J-API 的破坏性升级

  •  
  •   purenothingform · Oct 29, 2022 · 3099 views
    This topic created in 1319 days ago, the information mentioned may be changed or developed.

    org.slf4j.spi.SLF4JServiceProvider 接口的函数 getRequesteApiVersion 被改成 getRequestedpiVersion 造成如下错误:

    java.lang.AbstractMethodError: Receiver class org.apache.logging.slf4j.SLF4JServiceProvider does not define or inherit an implementation of the resolved method 'abstract java.lang.String getRequestedApiVersion()' of interface org.slf4j.spi.SLF4JServiceProvider
    
    5 replies    2022-10-30 16:25:49 +08:00
    guyeu
        1
    guyeu  
       Oct 29, 2022   ❤️ 2
    咋感觉像个 typo 呢。。
    Jooooooooo
        2
    Jooooooooo  
       Oct 29, 2022
    看起来是手误了

    不过这也告诫我们, 没事不要升级.
    learningman
        3
    learningman  
       Oct 29, 2022
    俩都像 typo ,Requeste 是个啥
    f64by
        4
    f64by  
       Oct 29, 2022
    10th of August, 2021 - Release of SLF4J 2.0.0-alpha3
    The getRequesteApiVersion method in SLF4JServiceProvider was renamed as getRequestedApiVersion. This fixes SLF4J-516.

    都改了一年多了……
    manymobi
        5
    manymobi  
       Oct 30, 2022
    大版本升级会出现 api 不兼容很正常,不然为啥升级大版本
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3629 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 04:42 · PVG 12:42 · LAX 21:42 · JFK 00:42
    ♥ Do have faith in what you're doing.