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

Check GraalVM version before returning macos/darwin platform. #1123

Merged
merged 4 commits into from
Feb 18, 2022

Conversation

johanvos
Copy link
Contributor

This closes #1121

Checks GraalVM version

Issue

Fixes #1121

Progress

boolean graalVM221 = false;
try {
Version graalVersion = projectConfiguration.getGraalVersion();
if ((graalVersion.getMajor() > 21) && (graalVersion.getMinor() >0)) graalVM221 = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove if and assign graalVM221directly?

Version graalVersion = projectConfiguration.getGraalVersion();
if ((graalVersion.getMajor() > 21) && (graalVersion.getMinor() >0)) graalVM221 = true;
} catch (IOException ex) {
ex.printStackTrace();
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need an stacktrace 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.

why not? This should never happen, so if it happens, we at least need a detailed reason (or we should call System.exit())

Copy link
Contributor

@jperedadnr jperedadnr left a comment

Choose a reason for hiding this comment

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

(Windows failure related to #1111)

@johanvos johanvos merged commit 3a23d5b into gluonhq:master Feb 18, 2022
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.

org.graalvm.nativeimage.Platform redefinition since GraalVM 22.1
2 participants