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

Updating to JNA 5 breaks purejavahidapi #61

Open
bwRavencl opened this issue Oct 27, 2018 · 0 comments
Open

Updating to JNA 5 breaks purejavahidapi #61

bwRavencl opened this issue Oct 27, 2018 · 0 comments

Comments

@bwRavencl
Copy link

bwRavencl commented Oct 27, 2018

Unfortunately purejavahidapi seems to be no longer compatible with JNA 5:

I observed the following stacktrace when I was trying to upgrade my project to JNA 5.0.0 in combination with 322fdb0 of purejavahidapi from jitpack.io

Exception in thread "DeviceRemovalHandler" java.lang.NoSuchFieldError: SIZE
	at purejavahidapi.windows.WinDef.invalidPointerValue(WinDef.java:54)
	at purejavahidapi.windows.WinDef.<clinit>(WinDef.java:50)
	at purejavahidapi.windows.WinDef$HANDLE.fromNative(WinDef.java:307)
	at com.sun.jna.NativeMappedConverter.fromNative(NativeMappedConverter.java:78)
	at com.sun.jna.Function.invoke(Function.java:369)
	at com.sun.jna.Library$Handler.invoke(Library.java:244)
	at com.sun.proxy.$Proxy0.GetModuleHandle(Unknown Source)
	at purejavahidapi.windows.Kernel32Library.GetModuleHandle(Kernel32Library.java:159)
	at purejavahidapi.windows.DeviceRemovalHandler$1.run(DeviceRemovalHandler.java:54)
	at java.base/java.lang.Thread.run(Thread.java:834)

Please see java-native-access/jna@869bb33 for more information on why Pointer.SIZE was replaced in JNA 5.

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

No branches or pull requests

1 participant