Skip to content

Add import module support to organize imports#2431

Open
jjohnstn wants to merge 2 commits intoeclipse-jdt:masterfrom
jjohnstn:compactmain
Open

Add import module support to organize imports#2431
jjohnstn wants to merge 2 commits intoeclipse-jdt:masterfrom
jjohnstn:compactmain

Conversation

@jjohnstn
Copy link
Copy Markdown
Contributor

What it does

In conjunction with changes to ImportRewrite, fixes organize imports when import module is used.

How to test

See new test or original issue.

Author checklist

@jjohnstn jjohnstn self-assigned this Aug 14, 2025
@jjohnstn jjohnstn added bug Something isn't working enhancement New feature or request labels Aug 14, 2025
@jjohnstn
Copy link
Copy Markdown
Contributor Author

This PR requires eclipse-jdt/eclipse.jdt.core#4309

@jjohnstn
Copy link
Copy Markdown
Contributor Author

@iloveeclipse Any chance you could look at this plus eclipse-jdt/eclipse.jdt.core#4309? The core change cited is required for this to work. I couldn't get a test working for just ImportRewrite because while it works fine in my new JDT UI test which sets up a Java24 project, the ImportRewrite tests use a different set up and it keeps failing for me because inner methods trying to create an AST can't find java.lang.Object, etc... and thus there are no bindings created. I'm sure I could figure it out in the future, but with M3 coming fast, I thought it would be good to have initial import module support for the 2025-09 release.

@iloveeclipse
Copy link
Copy Markdown
Member

Sorry, I'm out of PC till the end of month.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants