From a6559250437a515c2a4873b3582a142d65b8d221 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Fri, 2 May 2014 18:29:32 +0200 Subject: [PATCH] ability to serialize internal classes --- .../util/src/com/intellij/util/xmlb/PropertyAccessor.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/util/src/com/intellij/util/xmlb/PropertyAccessor.java b/platform/util/src/com/intellij/util/xmlb/PropertyAccessor.java index a9de8a924d59..ad7a962342f6 100644 --- a/platform/util/src/com/intellij/util/xmlb/PropertyAccessor.java +++ b/platform/util/src/com/intellij/util/xmlb/PropertyAccessor.java @@ -45,6 +45,13 @@ class PropertyAccessor implements Accessor { myReadMethod = readMethod; myWriteMethod = writeMethod; myGenericType = myReadMethod.getGenericReturnType(); + + try { + myReadMethod.setAccessible(true); + myWriteMethod.setAccessible(true); + } + catch (SecurityException ignored) { + } } @Override