Skip to content

Organize imports drops static imports of unknown types #1243

@eric-milles

Description

@eric-milles

Consider the following:

import static p.T.f as v
import static p.T.m as w
import static p.T.m
print v
w()
m()

If the type "p.T" cannot be resolved because the classpath is incomplete or whatever, the import statements removed by Organize Imports, which is a common on-save action. So if this file is edited when the project is in this state, the resolution of "v", "w" and "m" is lost.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions