Skip to content

Update jffi to 1.3.15#1912

Open
A248 wants to merge 1 commit intofabric8io:masterfrom
A248:upgrade-jffi-version
Open

Update jffi to 1.3.15#1912
A248 wants to merge 1 commit intofabric8io:masterfrom
A248:upgrade-jffi-version

Conversation

@A248
Copy link
Copy Markdown

@A248 A248 commented Apr 6, 2026

No description provided.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 6, 2026

@mattnelson
Copy link
Copy Markdown
Contributor

This change allows the plugin to work without using Unsafe which is throwing warnings on jdk23+.

More context here > jnr/jffi#165

[INFO] --- docker:0.48.1:stop (default) @ my-module ---
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::putLong has been called by com.kenai.jffi.UnsafeMemoryIO$UnsafeMemoryIO64 (file:/Users/myself/.m2/repository/com/github/jnr/jffi/1.3.11/jffi-1.3.11.jar)
WARNING: Please consider reporting this to the maintainers of class com.kenai.jffi.UnsafeMemoryIO$UnsafeMemoryIO64
WARNING: sun.misc.Unsafe::putLong will be removed in a future release

@A248
Copy link
Copy Markdown
Author

A248 commented Apr 23, 2026

I'm sure we could all benefit from having this dependency be updated. In my case, the latest version also fixes a bug causing docker-maven-plugin to break with certain non-English locales (jnr/jffi#170).

[ERROR] : could not get native definition for type `POINTER`, original error message follows: java.lang.UnsatisfiedLinkError: could not locate stub library in jar file.  Tried [jni/x86_64-Linux/libjffi-١.٢.so, /jni/x86_64-Linux/libjffi-١.٢.so]
[ERROR] 	at com.kenai.jffi.internal.StubLoader.getStubLibraryStream(StubLoader.java:589)
[ERROR] 	at com.kenai.jffi.internal.StubLoader.loadFromJar(StubLoader.java:444)
[ERROR] 	at com.kenai.jffi.internal.StubLoader.load(StubLoader.java:338)
[ERROR] 	at com.kenai.jffi.internal.StubLoader.<clinit>(StubLoader.java:626)

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