Do not emit pre-release flag if -Xskip-metadata-version-check is used
The -Xskip-metadata-version-check command line argument is supposed to be used to avoid getting errors only; the side effect that it also caused compiler to write the pre-release flag to binaries was a mistake and is fixed now
This commit is contained in:
+3
-1
@@ -74,7 +74,9 @@ class DeserializedDescriptorResolver {
|
||||
}
|
||||
|
||||
private val KotlinJvmBinaryClass.isPreReleaseInvisible: Boolean
|
||||
get() = !IS_PRE_RELEASE && (classHeader.isPreRelease || classHeader.metadataVersion == KOTLIN_1_1_EAP_METADATA_VERSION)
|
||||
get() = !JvmMetadataVersion.skipCheck &&
|
||||
!IS_PRE_RELEASE &&
|
||||
(classHeader.isPreRelease || classHeader.metadataVersion == KOTLIN_1_1_EAP_METADATA_VERSION)
|
||||
|
||||
internal fun readData(kotlinClass: KotlinJvmBinaryClass, expectedKinds: Set<KotlinClassHeader.Kind>): Array<String>? {
|
||||
val header = kotlinClass.classHeader
|
||||
|
||||
Reference in New Issue
Block a user