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

Specify and document value for environment variable for loading native library in Java bindings #5477

Merged
merged 2 commits into from
Aug 13, 2021

Conversation

kfriedberger
Copy link
Contributor

This is a follow-up PR for #4667.
Now the allowed values for the environment variable is specified as "true" (case-insensitive) or not.
And some documentation is added in the example directory for Java API usage.

@NikolajBjorner
Copy link
Contributor

Is there some java version issue with our builds?

/home/vsts/work/1/s/build/src/api/java/Native.java:13: error: cannot find symbol
if (!Boolean.parse(System.getProperty("z3.skipLibraryLoad"))) {
^
symbol: method parse(String)
location: class Boolean

… Java to "true".

This change specifies the range of values that are allowed to set the environment
variable "z3.skipLibraryLoad".
Only the value "true" (in upper-, lower-, and mixed-case is accepted as valid value.
Other values, such as "false", "0", "1", "foo", an empty or a missing value are
evaluated to "false" and cause the default loading of the native library.
… native library in Java.

This is a follow-up commit for #4667 to provide a publicly visible documentation.
@kfriedberger
Copy link
Contributor Author

Sorry, there was a typo.

@kfriedberger
Copy link
Contributor Author

CI looks better now :-)

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