History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-3490
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Shafirov
Reporter: Derek Foster
Votes: 0
Watchers: 1
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

"Create static import" intention doesn't always work.

Created: 11 Aug 05 04:00   Updated: 11 Aug 05 16:54
Component/s: Code Analysis. Inspection, Editor. Intention Actions
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,436
Severity: Medium


 Description  « Hide
I have the following code:

System.out.println("Actual="+actual);

I position the cursor on "System", and get an intention lightbulb to "Add on demand static import for "System"".

If I click on the intention and execute it, nothing happens. There are no changes to my source file, and no error messages.



 All   Comments   Work Log   Change History      Sort Order:
Eugene Vigdorchik - 11 Aug 05 16:54
Though it would be really better to display the hint with explanation, it is probably the case that FQ name cannot be shortened because unqualified name would resolve to different variable.