JitendraZaa/java-diff-utils

patch delta inconsistency on a 1-character insert

Opened this issue · 0 comments

What steps will reproduce the problem?
1. see attached test.java
2. enable 1 set of add statements and disable the other, run it
3. enable the other set of adds and disable the ones used in 2., and run it

What is the expected output? What do you see instead?
the only change between the orig. and revised strings is the addition of 1 
character in revised.
one set of adds generates a patch with a single ChangeDelta. the other set of 
adds generate a patch with an InsertDelta on Pos. 1 and a DeleteDelta on Pos. 
2. I assume Position = line #.

What version of the product are you using? On what operating system?
1.2.1

Please provide any additional information below.


Original issue reported on code.google.com by madmarco...@gmail.com on 27 Feb 2012 at 10:45

Attachments: