Skip to content

Request to remove com.sun.* content for JDK 27 support - #3129

Closed
xuxiaowei-com-cn wants to merge 3 commits into
diffplug:mainfrom
xuxiaowei-com-cn:xuxiaowei/issues-3128
Closed

xuxiaowei-com-cn wants to merge 3 commits into
diffplug:mainfrom
xuxiaowei-com-cn:xuxiaowei/issues-3128

Conversation

@xuxiaowei-com-cn

@xuxiaowei-com-cn xuxiaowei-com-cn commented Oct 2, 2026 •

Copy link
Copy Markdown

#3128

Please DO NOT FORCE PUSH. Don't worry about messy history, it's easier to do code review if we can tell what happened after the review, and force pushing breaks that.

Please make sure that your PR allows edits from maintainers. Sometimes it's faster for us to just fix something than it is to describe how to fix it.

Allow edits from maintainers

After creating the PR, please add a commit that adds a bullet-point under the [Unreleased] section of CHANGES.md, plugin-gradle/CHANGES.md, and plugin-maven/CHANGES.md which includes:

  • a summary of the change
  • either
    • a link to the issue you are resolving (for small changes)
    • a link to the PR you just created (for big changes likely to have discussion)

If your change only affects a build plugin, and not the lib, then you only need to update the plugin-foo/CHANGES.md for that plugin.

If your change affects lib in an end-user-visible way (fixing a bug, updating a version) then you need to update CHANGES.md for both the lib and all build plugins. Users of a build plugin shouldn't have to refer to lib to see changes that affect them.

This makes it easier for the maintainers to quickly release your changes :)

ModuleHelper opened a hardcoded list of JDK-internal packages and probed a
hardcoded class of each one. Enumerate the packages of the jdk.compiler
module instead, and open the ones which aren't open yet, so that no
JDK-internal name has to be hardcoded.

Because spotless opens those packages itself, the plugin-maven test harness
no longer needs to add --add-exports for them, and the import order test
fixtures use com.jna.* instead of com.sun.jna.*.
@Goooler

Goooler commented Oct 3, 2026

Copy link
Copy Markdown
Member

Seems duplicates of #3118?

@xuxiaowei-com-cn

Copy link
Copy Markdown
Author

Seems duplicates of #3118?

  • Yes, it does look somewhat similar.
  • But Add Java 27 into test matrix #3118 only replaces JDK 26 with 27 in the matrix, and there’s nothing else. Moreover, 4 days have passed, and it’s still on the initial commit, and GitHub Actions is having issues...
  • This PR also includes the removal of com.sun.*-related content.

@Goooler

Goooler commented Oct 3, 2026

Copy link
Copy Markdown
Member

#3118 (comment)

@Goooler Goooler closed this Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants