Announcing kotlinx-metadata-jvm library for reading/modifying metadata of Kotlin/JVM class files

kotlinx-metadata-jvm 0.4.0 has been released.


  • Update to Kotlin 1.6 with metadata version 1.6, support reading/writing metadata of version 1.7 which will be used in Kotlin 1.7.
  • Add JvmPropertyExtensionVisitor.visitSyntheticMethodForDelegate for optimized delegated properties (KT-39055).
  • Add JVM-specific class flags:
    • JvmClassExtensionVisitor.visitJvmFlags
  • KT-48965 Make the type of KmValueParameter.type non-null KmType
  • Remove unused JvmTypeAliasExtensionVisitor and JvmValueParameterExtensionVisitor
  • Fix type flags (suspend, definitely non-null) on underlying type of inline class available via KmClass.inlineClassUnderlyingType

kotlinx-metadata-jvm 0.4.1 has been released.


  • Add KmProperty.syntheticMethodForDelegate for optimized delegated properties (KT-39055).