java.lang.ClassCastException: microsoft.exchange.webservices.data.property.definition.IndexedPropertyDefinition cannot be cast to microsoft.exchange.webservices.data.property.definition.PropertyDefinition
at microsoft.exchange.webservices.data.core.service.ServiceObject.getObjectFromPropertyDefinition(ServiceObject.java:396) ~[ews-java-api-2.0.jar:na]
Although the signature of .getObjectFromPropertyDefinition accepts a PropertDefinitionBase, it fails during runtime when it tries to do a cast. This error can be moved to a compile time check by using a better hierarchy for PropertyDefinition and usinga stricter interface in getObjectFromPropertyDefinition
Although the signature of
.getObjectFromPropertyDefinition
accepts aPropertDefinitionBase
, it fails during runtime when it tries to do a cast. This error can be moved to a compile time check by using a better hierarchy forPropertyDefinition
and usinga stricter interface ingetObjectFromPropertyDefinition