diff --git a/platform/object-serializer/src/IonBindingProducer.kt b/platform/object-serializer/src/IonBindingProducer.kt index 7fba8aa70347..78526db3c911 100644 --- a/platform/object-serializer/src/IonBindingProducer.kt +++ b/platform/object-serializer/src/IonBindingProducer.kt @@ -1,4 +1,4 @@ -// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.serialization import com.amazon.ion.Timestamp @@ -72,10 +72,7 @@ internal class IonBindingProducer(override val propertyCollector: PropertyCollec PolymorphicBinding(aClass) } java.lang.Number::class.java.isAssignableFrom(aClass) -> IntNumberAsObjectBinding() - aClass is Proxy -> { - throw SerializationException("$aClass class is not supported") - } - aClass == Class::class.java -> { + aClass == Class::class.java || Proxy::class.java.isAssignableFrom(aClass) -> { // Class can be supported, but it will be implemented only when will be a real use case throw SerializationException("$aClass class is not supported") }