Sort sealed class inheritors to ensure reproducible builds with IC
without this sorting the inheritors field in the metadata may depend on whether some inheritors are compiled in the IC round or not.
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ class LazyJavaClassDescriptor(
|
||||
val attributes = TypeUsage.COMMON.toAttributes()
|
||||
jClass.permittedTypes.mapNotNull {
|
||||
c.typeResolver.transformJavaType(it, attributes).constructor.declarationDescriptor as? ClassDescriptor
|
||||
}
|
||||
}.sortedBy { it.fqNameSafe.asString() }
|
||||
} else {
|
||||
emptyList()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user