ITADN

ComponentBuilder#build BuildableComponent ABI compatibility

#1431Closed56738 创建于 2026-06-20
5
56738commented
The following code compiled against Adventure 4.26.1 (Paper 1.21.11) ```java Component c = Component.text().build(); ``` no longer works when running on Adventure 5.1.1 (Paper 26.2) ``` java.lang.NoSuchMethodError: 'net.kyori.adventure.text.BuildableComponent net.kyori.adventure.text.TextComponent$Builder.build()' ``` Bytecode: ``` INVOKESTATIC net/kyori/adventure/text/Component.text ()Lnet/kyori/adventure/text/TextComponent$Builder; (itf) INVOKEINTERFACE net/kyori/adventure/text/TextComponent$Builder.build ()Lnet/kyori/adventure/text/BuildableComponent; (itf) ``` I'm not sure if it's possible to fix this since the bytecode directly references a removed class?
关闭于 2026-06-27 0 条评论