Closed GoogleCodeExporter closed 8 years ago
What steps will reproduce the problem?
java -jar daisydiff.jar old.html new.html --type=tag
What is the expected output? What do you see instead?
..java.lang.IndexOutOfBoundsException: There is no Atom with index 12
at org.outerj.daisy.diff.tag.TagComparator.getAtom(Unknown Source)
at org.outerj.daisy.diff.tag.TagDiffer.preProcess(Unknown Source)
at org.outerj.daisy.diff.tag.TagDiffer.diff(Unknown Source)
at org.outerj.daisy.diff.DaisyDiff.diffTag(Unknown Source)
at org.outerj.daisy.diff.Main.main(Unknown Source)
Original comment by be...@parkflyer.ru
on 31 Aug 2011 at 7:20
Attachments:
[deleted comment]
Bug fix
TagDiffer.java
line 185
Old:
while ((leftComparator.getAtom(temp) instanceof DelimiterAtom ||
(bridgelength-- > 0))
&& temp < differences[i + 1].leftStart()) {
temp++;
}
New:
while (temp < differences[i + 1].leftStart() && (leftComparator.getAtom(temp)
instanceof DelimiterAtom || (bridgelength-- > 0)) ) {
temp++;
}
Original comment by be...@parkflyer.ru
on 1 Sep 2011 at 9:03
Aha! Thanks for submitting this patch. If it is so simple and testcases finish
successfully it will be committed to trunk.
Original comment by kkape...@gmail.com
on 1 Sep 2011 at 5:24
Committed patch in subversion r171
Original comment by kkape...@gmail.com
on 13 Sep 2011 at 9:57
Original issue reported on code.google.com by
kkape...@gmail.com
on 26 Mar 2010 at 2:56Attachments: