- 
                Notifications
    You must be signed in to change notification settings 
- Fork 31
fix: jna os info on linux/macos #991
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
Conversation
Signed-off-by: GitHub <[email protected]>
| SHARED -> if (it.registerJni) { /* Dynamic JNI libraries use JNI to load. */ } else { | ||
| nativeLibraries.addDynamicNonJniLibrary(it.name) | ||
| } | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a point to having the empty if branch? why not invert the condition and keep the comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@darvld good point -- should get compiled out since it.registerJni is known at compile time (this is all build time code anyway) but will catch in the next PR. there is going to be logic in that other branch eventually, i think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that the compiler will optimize it out, I was just checking if you had forgotten to add some logic there 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with small comments 👍
b18911c    to
    61a8999      
    Compare
  
    - fix: jna/oshi reflection and proxy metadata - fix: no stacktrace for host-side error causes in native mode - chore: cpu test script - chore: update `graalvm` module pin / detekt baseline Fixes and closes #990 Signed-off-by: Sam Gammon <[email protected]>
Summary
Builds on top of #988 with a better suite of fixes on both macOS and Linux for OS info obtain via OSHI/JNA. Fixes and closes #990.
Changelog
graalvmmodule pin / detekt baseline