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 drops static imports for default-package types #1244

Closed
eric-milles opened this issue Apr 15, 2021 · 0 comments
Closed

Organize imports drops static imports for default-package types #1244

eric-milles opened this issue Apr 15, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@eric-milles
Copy link
Member

eric-milles commented Apr 15, 2021

Consider the following:

import static J.f
import static J.m
print f
m()

J.java:

class J {
  static Object f
  static void m() {}
}

Organize Imports action will remove the imports for the default-package type "J", breaking the resolution of "f" and "m".

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