Skip to content

Comments

Improve IDE build experience against jdk11#40667

Closed
ksumit wants to merge 1 commit intoapache:masterfrom
ksumit:master
Closed

Improve IDE build experience against jdk11#40667
ksumit wants to merge 1 commit intoapache:masterfrom
ksumit:master

Conversation

@ksumit
Copy link

@ksumit ksumit commented Apr 4, 2023

What changes were proposed in this pull request?

Building the project against jdk11 on IDE shows errors because Platform.java depends on sun.misc which is in jdk.unsupported module in jdk11. The problem goes away when we pass java.version as 11 to maven as system D parameters.

This PR set java.version to 11 by detecting jdk version automatically and improves build experience.

Why are the changes needed?

It makes build experience on IDE against jdk11 smoother.

Does this PR introduce any user-facing change?

Users won't have to specify java.version in maven parameters any more since the profile gets activated automagically based on the jdk version.

How was this patch tested?

This patch was tested by building locally.

@github-actions github-actions bot added the BUILD label Apr 4, 2023
@github-actions
Copy link

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Jul 14, 2023
@github-actions github-actions bot closed this Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant