Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add multi java lts support. #1054

Merged
merged 3 commits into from
Jan 28, 2024
Merged

feat: Add multi java lts support. #1054

merged 3 commits into from
Jan 28, 2024

Conversation

He-Pin
Copy link
Member

@He-Pin He-Pin commented Jan 27, 2024

Motivation:

Add support to test JDK 11, JDK 17, and JDK 21 related code and just add the code when the runtime version matches.
This will help us to detect LTS version-related issues at the nightly build.
With JDK 21:
image
With JDK 11:
image

@Roiocam ping for a review too

@He-Pin He-Pin added the build sbt or build of the project label Jan 27, 2024
@He-Pin He-Pin added this to the 1.1.0-M1 milestone Jan 27, 2024
@He-Pin
Copy link
Member Author

He-Pin commented Jan 27, 2024

image
@pjfanning Actually we currently how two styles :(

Copy link
Contributor

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the file should be left in java-jdk-21 to match the existing dir names, like java-jdk-9

@He-Pin
Copy link
Member Author

He-Pin commented Jan 27, 2024

@pjfanning I think it should be fine now

case Msg1 msg1 -> receiveMsg1(msg1);
case Msg2 msg2 -> receiveMsg2(msg2);
case Msg3 msg3 -> receiveMsg3(msg3);
default -> unhandled(msg);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now catch.

@He-Pin He-Pin requested a review from pjfanning January 27, 2024 15:53
project/Jdk9.scala Outdated Show resolved Hide resolved
Copy link
Member

@Roiocam Roiocam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant works, thanks. Leave some picky suggestion.

project/Jdk9.scala Outdated Show resolved Hide resolved
project/CopyrightHeaderForJdk9.scala Show resolved Hide resolved
project/Jdk9.scala Outdated Show resolved Hide resolved
project/JdkOptions.scala Show resolved Hide resolved
@He-Pin He-Pin requested a review from Roiocam January 27, 2024 17:16
@He-Pin
Copy link
Member Author

He-Pin commented Jan 27, 2024

@pjfanning , @Roiocam ping with additional simplification from @Roiocam :)

Copy link
Member

@Roiocam Roiocam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @He-Pin , It's great and useful, we could support more JDK feature now.

@Roiocam Roiocam mentioned this pull request Jan 27, 2024
32 tasks
@He-Pin
Copy link
Member Author

He-Pin commented Jan 28, 2024

@pjfanning ping for another round of review, I think this is done.

@He-Pin He-Pin requested a review from nvollmar January 28, 2024 05:56
@He-Pin He-Pin requested a review from gmethvin January 28, 2024 05:56
Copy link
Contributor

@pjfanning pjfanning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@He-Pin He-Pin merged commit bcec7c0 into apache:main Jan 28, 2024
17 of 18 checks passed
@He-Pin He-Pin deleted the multiLTS branch January 28, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build sbt or build of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants