Bug 37757 - Organize imports should also work when there are syntax errors [code manipulation]
Summary: Organize imports should also work when there are syntax errors [code manipula...
Status: RESOLVED DUPLICATE of bug 48242
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-16 09:01 EDT by Erich Gamma CLA
Modified: 2003-12-08 04:37 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Gamma CLA 2003-05-16 09:01:09 EDT
The implementation is AST based we could add a fallback solution that is based 
on code resolve.
Comment 1 Erich Gamma CLA 2003-05-16 09:09:23 EDT
For example, when there is a missing semicolon you should still be able to do 
an organize import.
Comment 2 Peter Kalmus CLA 2003-11-11 11:55:49 EST
Here are two specific cases:

  MyNewType
  MyNewType.

After typing either of those statement fragments, ctl-shift-o should do its 
thing so that you get context help after the '.'

The first fragment complains about "missing semicolon".  
Second gives a different complaint.
Comment 3 Martin Aeschlimann CLA 2003-12-08 04:37:51 EST
See bug 48242 for why I think we should not change 'Organize import' but 
improve code assist.

*** This bug has been marked as a duplicate of 48242 ***