| Summary: | [implementation] BadLocationException when pasting in a string | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Tomasz Zarna <tomasz.zarna> |
| Component: | Text | Assignee: | Dani Megert <daniel_megert> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.7 | ||
| Target Milestone: | 3.8 M6 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Tomasz Zarna
Do you have the initial (or final) source that produces this? Otherwise the steps don't help me much. Sure, here are more detailed steps: 1. You will need to fetch Patch Set 1 from https://git.eclipse.org/r/#/c/5046/. It's a fix for EGit so you will have to clone it first. 2. Copy these lines to clipboard: index e69de29..eb5f2c9 100644 --- a/test-file +++ b/test-file @@ -0,0 +1 @@ +another line \\ No newline at end of file 3. Go to line 58 ie "private static final String SIMPLE_PATCH_CONTENT (...)", End, Enter 4. Paste the copied lines. 5. Go down one line, copy '+ "' to clipboard 6. Go back to the beginning of the first copied line, paste the copied prefix 7. Go down one line, repeat. The exception shows up when pasting for the third time Hope this helps. Note this is 3.7.0. Thanks for those nice steps! Fixed in master: 22dfdc48a63211f0207ce016e1ee0ddc338af14d |