fix "is Proxy"

GitOrigin-RevId: e7570bc4f2e491bf95148fd2b9bb13c4a4511c05
This commit is contained in:
Vladimir Krivosheev
2021-06-25 07:25:39 +02:00
committed by intellij-monorepo-bot
parent cd71263585
commit ce057d8a27

View File

@@ -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")
}