mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] fault-tolerant bindings initialization
This commit is contained in:
@@ -167,7 +167,11 @@ private val serializer = object : XmlSerializerImpl.XmlSerializerBase() {
|
||||
try {
|
||||
binding.init(originalType, this)
|
||||
}
|
||||
catch (e: XmlSerializationException) {
|
||||
catch (e: RuntimeException) {
|
||||
map.remove(key)
|
||||
throw e
|
||||
}
|
||||
catch (e: Error) {
|
||||
map.remove(key)
|
||||
throw e
|
||||
}
|
||||
|
||||
@@ -132,7 +132,11 @@ public final class XmlSerializerImpl {
|
||||
try {
|
||||
binding.init(originalType, this);
|
||||
}
|
||||
catch (XmlSerializationException e) {
|
||||
catch (RuntimeException e) {
|
||||
map.remove(key);
|
||||
throw e;
|
||||
}
|
||||
catch (Error e) {
|
||||
map.remove(key);
|
||||
throw e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user