Skip to content

Incorrect organize imports result with config script or AST transform that adds static on-demand import #430

@eric-milles

Description

@eric-milles

With this set as the compiler config script, organize imports results in the addition of the synthetic import to the source.

withConfig(configuration) {
  imports {
    staticStar 'java.util.concurrent.TimeUnit'
  }
}

Organize imports on:

class C {
}

results in:

import static java.util.concurrent.TimeUnit.*

class C {
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions