be ready method can throw unchecked exceptions, e.g. PCE in highlighting - to fix EA-98206 - AUCRRAE: ReadMostlyRWLock.a

This commit is contained in:
Alexey Kudravtsev
2017-03-27 13:49:31 +03:00
parent d707615cb5
commit 592cade6e8
@@ -61,6 +61,9 @@ class PropertyAccessor implements MutableAccessor {
throw new XmlSerializationException(e);
}
catch (InvocationTargetException e) {
Throwable exception = e.getTargetException();
if (exception instanceof Error) throw (Error)exception;
if (exception instanceof RuntimeException) throw (RuntimeException)exception;
throw new XmlSerializationException(e);
}
}