| Summary: | [5.0][typing] completion for "import static" deletes all source before | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Andrey Loskutov <loskutov> |
| Component: | Core | Assignee: | David Audel <david_audel> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | CC: | david_audel, eclipse, martinae, tobias_widmer |
| Version: | 3.1 | ||
| Target Milestone: | 3.1 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 95096 | ||
Approving for 3.1 RC2. *** Bug 95096 has been marked as a duplicate of this bug. *** The replaceStart and replaceEnd properties of METHOD_NAME_REFERENCE proposals are not set. Both are zero. +1 for RC2 +1 for RC2 Fixed and test added CompletionsTests_1_5#test0223() *** Bug 97579 has been marked as a duplicate of this bug. *** Verified using N20050606-0010 + JDT/Core HEAD Verified in I20050610-0010. |
Consider followed class: -------------------- /** * Just for test */ package de.loskutov.ai; import java.awt.*; public class A { } -------------------- Now try to type "import static java.lang.Double.pa" and do "ctrl+space" after ". pa": -------------------- /** * Just for test */ package de.loskutov.ai; import java.awt.*; import static java.lang.Double.pa<- cursor is here public class A { } ---------------- The entire source before static import will be deleted: --------------- java.lang.Double.parseDouble; public class A { } --------------- I'm running 3.1.0 Build id: I20050527-1300 on JDK 1.5.0_3 for Windows.