We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

ClassCastException with Document.acceptAllRevisions()

Aspose Words (tested v14.5.0 , v14.6.0) throws a ClassCastException when calling acceptAllRevisions() on the given document.

new Document("test.rtf").acceptAllRevisions();
Exception in thread "main" java.lang.ClassCastException: com.aspose.words.Paragraph cannot be cast to com.aspose.words.zz62
at com.aspose.words.zzZO8.zzZ(Unknown Source)
at com.aspose.words.zzZO8.zzZu(Unknown Source)
at com.aspose.words.zzZO8.zzj(Unknown Source)
at com.aspose.words.zzZO8.zzZ(Unknown Source)
at com.aspose.words.RevisionCollection.acceptAll(Unknown Source)
at com.aspose.words.Document.acceptAllRevisions(Unknown Source)


Hi Romain,

Thanks for your inquiry.

I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-10494. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-10494) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.