Summary: | Applying patch with one line added inserts new line one line above | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Martin Burger <m> | ||||
Component: | Compare | Assignee: | Platform-Compare-Inbox <platform-compare-inbox> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | gunnar | ||||
Version: | 3.0.2 | ||||||
Target Milestone: | 3.1 M7 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Martin Burger
2005-05-06 09:04:50 EDT
Created attachment 20772 [details]
Possible fix
The patch fixes this issue partly. Line is added at correct row, but
furthermore exception is thrown.
The reason for the IndexOutOfBoundsException is probably a missing tab separator in the header: --- test.txt Fri May 6 01:46:07 2005 +++ test.txt Fri May 6 14:54:19 2005 the tab should between the "test.txt" and the "Fri...". Without the tab the whole line "test.txt Fri May 6 01:46:07 2005" is considered the file to patch. Patch applied; IndexOutOfBoundsException fixed; added 3 new test cases |