| Summary: | [content assist] Overriding content assist suggestion immediately after closing brace generates invalid code | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Remy Suen <remy.suen> |
| Component: | Text | Assignee: | Dani Megert <daniel_megert> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, Olivier_Thomann |
| Version: | 3.6 | ||
| Target Milestone: | 3.7 M4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
This is a bug in JDT Text. Fixed in OverrideCompletionProposal rev. 1.40. Available in builds >= N20101115-2000. |
I20100603-1500 public class Test { public void v() { }//<-invoke CC here } Select the second option, the clone() method, and you will get... public class Test { public void v() { }protected Object clone() throws CloneNotSupportedException {};//<-invoke CC here } ...if you put a space first, you will get... public class Test { public void v() { } @Override protected Object clone() throws CloneNotSupportedException { // TODO Auto-generated method stub return super.clone(); }//<-invoke CC here }