After compare comment with reply on second paragraph got wrong value. Value was get as union of commet + reply. If I remove comment from first paragraph, value of comment from second paragraph correct. Also if I create comment + reply on third, value from third correct.
http://joxi.ru/823nnxlS91NBem
code:
Document doc = new Document("C:\\parleypro\\PAR-13234\\1.docx");
Document doc2 = new Document("C:\\parleypro\\PAR-13234\\2.docx");
doc.acceptAllRevisions();
doc2.acceptAllRevisions();
doc.compare(doc2, "3", new Date());
NodeCollection<Comment> comments = doc.getChildNodes(NodeType.COMMENT, true);
for (Comment n:comments) {
System.out.println(n.getText());
}
comment_bug.zip (37.7 KB)