| Summary: | [typing] Auto-inserted bracket '}' crosses parentheses scope | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Nikolay Entin <nick.entin> |
| Component: | Text | Assignee: | Dani Megert <daniel_megert> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | daniel_megert, eclipse.org |
| Version: | 2.1 | ||
| Target Milestone: | 3.5 M3 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
*** Bug 237466 has been marked as a duplicate of this bug. *** Bug is in JavaAutoIndentStrategy.computeAnonymousPosition(IDocument, int, String, int). Fixed in HEAD. Available in builds > N20080922-2000. |
Suppose there is a method void foo (String []); if in some place you want ivoke the method creating the array on fly, and suppose to type something like: foo (new String [] {"x"}) automatic parentheses and curved brackets insertion makes your code looking as foo (new String [] {<cursor here>) } i.e closing curved bracket goes out of the method parameter parentheses...