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

kotlinx-metadata-jvm 0.4.0 has been released.

Changelog:

  • 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
    • JvmFlag.Class.HAS_METHOD_BODIES_IN_INTERFACE
    • JvmFlag.Class.IS_COMPILED_IN_COMPATIBILITY_MODE
  • 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.

Changelog:

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