Skip to content

Improve and document the JavaVirtualMachine initializer #50

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

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented Oct 7, 2024

Add options for the class path (so clients don't need to re-learn how to
spell it) and for telling the JVM whether to ignore unrecognized arguments.

While here, reduce the JNI requirements down to JDK/JRE 1.6. We don't use any of the newer APIs. This addresses the functional part of #12

Add options for the class path (so clients don't need to re-learn how to
spell it) and for telling the JVM whether to ignore unrecognized arguments.
Based on our uses of the JNI APIs, the JavaKit path (Swift wrapping
Java classes) only requires JNI as of Java 1.6, far earlier than the
JDK 21 we had previously required.
@DougGregor DougGregor merged commit a64f805 into swiftlang:main Oct 7, 2024
8 of 9 checks passed
@DougGregor DougGregor deleted the jvm-class-cleanups branch October 7, 2024 19:30
Copy link
Collaborator

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

LGTM :)

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