Do not load old metadata annotation in check-library-abi-version.kts
Also do not force recompiling markdown since we've moved to 1.1.0 now
This commit is contained in:
@@ -31,26 +31,15 @@ fun loadClassVersions(bytes: ByteArray): Pair<List<Int>, List<Int>>? {
|
|||||||
var bytecode: IntArray? = null
|
var bytecode: IntArray? = null
|
||||||
ClassReader(bytes).accept(object : ClassVisitor(Opcodes.ASM5) {
|
ClassReader(bytes).accept(object : ClassVisitor(Opcodes.ASM5) {
|
||||||
override fun visitAnnotation(desc: String, visible: Boolean): AnnotationVisitor? {
|
override fun visitAnnotation(desc: String, visible: Boolean): AnnotationVisitor? {
|
||||||
return when (desc) {
|
if (desc != "Lkotlin/Metadata;") return null
|
||||||
"Lkotlin/Metadata;" ->
|
|
||||||
object : AnnotationVisitor(Opcodes.ASM5) {
|
return object : AnnotationVisitor(Opcodes.ASM5) {
|
||||||
override fun visit(name: String, value: Any) {
|
override fun visit(name: String, value: Any) {
|
||||||
when (name) {
|
when (name) {
|
||||||
"mv" -> metadata = value as IntArray
|
"mv" -> metadata = value as IntArray
|
||||||
"bv" -> bytecode = value as IntArray
|
"bv" -> bytecode = value as IntArray
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
"Lkotlin/jvm/internal/KotlinClass;" ->
|
}
|
||||||
object : AnnotationVisitor(Opcodes.ASM5) {
|
|
||||||
override fun visit(name: String, value: Any) {
|
|
||||||
if (name == "version") {
|
|
||||||
metadata = value as IntArray
|
|
||||||
bytecode = metadata
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else -> null
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 0)
|
}, 0)
|
||||||
|
|||||||
@@ -412,8 +412,6 @@
|
|||||||
<equals arg1="${markdown.abi.incompatible}" arg2="0"/>
|
<equals arg1="${markdown.abi.incompatible}" arg2="0"/>
|
||||||
</not>
|
</not>
|
||||||
</condition>
|
</condition>
|
||||||
<!-- remove after RC ABI version incremented -->
|
|
||||||
<property name="markdown.need.recompile" value="true" />
|
|
||||||
|
|
||||||
<sequential if:set="markdown.need.recompile">
|
<sequential if:set="markdown.need.recompile">
|
||||||
<echo message="Recompiling intellij-markdown manually"/>
|
<echo message="Recompiling intellij-markdown manually"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user