Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Organize imports" fails to import some types even though type name is unique #552

Closed
fbricon opened this issue Feb 13, 2018 · 1 comment
Assignees
Labels

Comments

@fbricon
Copy link
Contributor

fbricon commented Feb 13, 2018

With a class such as

class MyDriver implements Driver{}

Organize imports should automatically import java.sql.Driver, but does nothing. I wonder if this is caused by having 2 possible matching imports when you autocomplete:
screen shot 2018-02-13 at 1 03 59 pm

With one exact type name match, there should be no ambiguity though. Works fine in Eclipse.

@fbricon fbricon added the bug label Feb 13, 2018
@fbricon fbricon changed the title Organize imports to import some types even though type name is unique "Organize imports" fails to import some types even though type name is unique Feb 13, 2018
@fbricon fbricon self-assigned this Feb 13, 2018
@fbricon fbricon added this to the Mid March 2018 milestone Mar 1, 2018
@fbricon
Copy link
Contributor Author

fbricon commented Mar 15, 2018

Fixed with e0bb56a

@fbricon fbricon closed this as completed Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant