V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
purenothingform
V2EX  ›  Java

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

  •  
  •   purenothingform · 2022-10-29 12:57:02 +08:00 · 1833 次点击
    这是一个创建于 516 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2022-10-30 16:25:49 +08:00
    guyeu
        1
    guyeu  
       2022-10-29 14:04:34 +08:00   ❤️ 2
    咋感觉像个 typo 呢。。
    Jooooooooo
        2
    Jooooooooo  
       2022-10-29 14:24:30 +08:00
    看起来是手误了

    不过这也告诫我们, 没事不要升级.
    learningman
        3
    learningman  
       2022-10-29 21:28:01 +08:00
    俩都像 typo ,Requeste 是个啥
    f64by
        4
    f64by  
       2022-10-29 23:19:23 +08:00
    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  
       2022-10-30 16:25:49 +08:00
    大版本升级会出现 api 不兼容很正常,不然为啥升级大版本
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1876 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:26 · PVG 00:26 · LAX 09:26 · JFK 12:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.