GroupDocs.Comparison for Java V26.3

Released: Mar 17, 2026

V26.3 での更新項目

機能

  • Word-specific options are now available in a dedicated WordCompareOptions class (extends CompareOptions). Use it when comparing Word documents to configure MarkLineBreaks, CompareBookmarks, CompareVariableProperty, CompareDocumentProperty, ShowRevisions, LeaveGaps, WordTrackChanges, RevisionAuthorName, and DisplayMode (Revisions / Highlight). The same options remain on CompareOptions but are deprecated in favor of WordCompareOptions.
  • When comparing Word documents, the result Aspose Words document can be obtained via getResult().getResultDocument() even when not saving to a stream, so callers can access the comparison result document in all scenarios.
  • ComparisonMailMessage now accepts an optional FileType in the constructor. Comparer and MultiComparer pass the source/target document FileType when creating email comparison instances, improving detection and behavior when comparing email files.
  • Merging of Word paragraphs now handles null or whitespace-only text (returns 0 similarity), applies a word-count threshold for short strings (returns 10 when fewer than 4 words), and takes a snapshot of child nodes before moving them to avoid concurrent modification issues.
  • InstanceHelper.getDocument(InputStream stream, LoadOptions loadOptions, String password) has been added to load a Word document from a stream with optional load options and password.

不具合の修正

  • Fixed PNG comparison.
  • Compare class changes - AntiHackController Default, performCheck in Comparer.
  • Fixed XML declaration (Javadoc License/Metered references removed).
  • Fixed build - DiagramCompareResult isTextEmpty-getChars!=null; CodeFileTest disables.
  • Fixed build - words/format/Converter CalculateGaps package-private.
  • Comparer - Case DIFFERENT commented out; selfComparisonCheck public for tests.
  • Fixed build - ComparisonDocument constructor (Aspose.Words.Document) package-private.
  • Excel comparison hanging - Cells InstanceHelper/LoadOptions, ComparisonRange mergedCells, ComparisonWorkbook worksheets.
  • Sonar - CommonMethods.standartName null-check, StylesSetter.isHighlightColorSupported package-private.
  • Revert - ComparisonWorkbook worksheet cache, new list per call.
  • Fixed tests - MultiComparer png-UNDEFINED, else UNDEFINED-TEXT.
  • Tests - Cells StylesComparer.equals, WordSeparator.runsMerger package-private.
  • Build fix - ComparisonMailMessage(Document, FileType), Comparer/MultiComparer pass getFileType().
  • Fixes - Email FileType passed (aligned with build fix).
  • Word paragraphs merging - logic kept, merge behavior fixed.
  • Fix for Word - ICompareResult.getResultDocument(), WordsCompareResult returns _wordsDocument.