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

Java 17 features in code #882

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Conversation

altro3
Copy link
Contributor

@altro3 altro3 commented Nov 24, 2023

Fixed tests for windows

Copy link
Collaborator

@melix melix left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! You'll need to revert the changes which convert anonymous inner classes to lambdas. It's a limitation of Gradle's configuration cache: lambdas need to be Serializable.

.collect(Collectors.joining("\n "))
);
}
task.doFirst((t) -> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

As far as I'm aware, you'll need to revert this change: lambdas are not compatible with the configuration cache.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

if (lines.stream().noneMatch(l -> l.contains("Snapshotting complete"))) {
throw new GradleException("Checkpoint container failed");
}
task.doLast(t -> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here, we need to use anonymous classes I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

t.getLogger().warn(" CRaC checkpoint files may contain sensitive information.");
t.getLogger().warn("**********************************************************");
}
task.doLast(t -> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Collaborator

@melix melix left a comment

Choose a reason for hiding this comment

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

Many thanks!

@altro3
Copy link
Contributor Author

altro3 commented Nov 24, 2023

You're welcome! ;-)

@melix melix merged commit 2d20a51 into micronaut-projects:master Nov 27, 2023
3 checks passed
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