Test that no delegated properties are used in critical classes in reflection

This commit is contained in:
Alexander Udalov
2015-12-07 20:28:00 +03:00
parent cfed28c2ff
commit 9a01c0d9cb
2 changed files with 57 additions and 2 deletions
@@ -37,8 +37,6 @@ import kotlin.reflect.KCallable
import kotlin.reflect.KotlinReflectionInternalError
internal abstract class KDeclarationContainerImpl : ClassBasedDeclarationContainer {
// NB: be careful not to introduce delegated properties in this class and subclasses, there are problems with circular dependencies
// Note: this is stored here on a soft reference to prevent GC from destroying the weak reference to it in the moduleByClassLoader cache
private val moduleData_ = ReflectProperties.lazySoft {
jClass.getOrCreateModule()