mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
fix "is Proxy"
GitOrigin-RevId: e7570bc4f2e491bf95148fd2b9bb13c4a4511c05
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cd71263585
commit
ce057d8a27
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user