The Wayback Machine - https://web.archive.org/web/20201017223805/https://github.com/dorkbox/SystemTray/issues/103
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

JNA dependency update #103

Open
JockX opened this issue Mar 24, 2019 · 5 comments
Open

JNA dependency update #103

JockX opened this issue Mar 24, 2019 · 5 comments

Comments

@JockX
Copy link

@JockX JockX commented Mar 24, 2019

The project depends on JNA v4.x while the v5.x is out. It's problematic when trying to use some other libraries that depend on updated version (oshi/oshi), because there are api changes between the two. Is there a plan to upgrade to the latest jna?

Exception in thread "WindowsEventDispatch" java.lang.IllegalArgumentException: Invalid Structure field in class dorkbox.util.jna.windows.MSG, field name 'wParam' (class dorkbox.util.jna.windows.Parameter): The type "dorkbox.util.jna.windows.Parameter" is not supported: Can't create an instance of class dorkbox.util.jna.windows.Parameter, requires a public no-arg constructor: java.lang.reflect.InvocationTargetException
	at com.sun.jna.Structure.validateField(Structure.java:1214)
	at com.sun.jna.Structure.validateFields(Structure.java:1223)
	at com.sun.jna.Structure.<init>(Structure.java:200)
	at com.sun.jna.Structure.<init>(Structure.java:193)
	at com.sun.jna.Structure.<init>(Structure.java:180)
	at com.sun.jna.Structure.<init>(Structure.java:172)
	at dorkbox.util.jna.windows.MSG.<init>(MSG.java:25)
	at dorkbox.util.jna.windows.WindowsEventDispatch.run(WindowsEventDispatch.java:195)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: The type "dorkbox.util.jna.windows.Parameter" is not supported: Can't create an instance of class dorkbox.util.jna.windows.Parameter, requires a public no-arg constructor: java.lang.reflect.InvocationTargetException
	at com.sun.jna.Native.getNativeSize(Native.java:1356)
	at com.sun.jna.Structure.getNativeSize(Structure.java:2172)
	at com.sun.jna.Structure.getNativeSize(Structure.java:2162)
	at com.sun.jna.Structure.validateField(Structure.java:1210)
	... 8 more
@dorkbox
Copy link
Owner

@dorkbox dorkbox commented Mar 24, 2019

yea, i'll update it. not sure exactly when - since there is a lot of other going on.

@polyn0m
Copy link

@polyn0m polyn0m commented Apr 29, 2019

@dorkbox you plan update? It's painful issue...

@camhart
Copy link

@camhart camhart commented Jun 18, 2019

@dorkbox you plan update? It's painful issue...

It's an open source project, and he's giving it away for free. Why don't you put up a PR to fix the problem and help him out?

@bdw429s
Copy link

@bdw429s bdw429s commented Oct 31, 2019

Just subscribing here. I'm using Systemtray along side https://github.com/jline/jline3 which now requires JNA 5.3 or higher.

@dyorgio
Copy link

@dyorgio dyorgio commented Feb 21, 2020

Subscribing too...
It's hard do help with PR, because this lib depends of Util lib, that is used for a lot of @dorkbox works/projects.
My sugestion (2 cents): migrate all dependency utilities/classes sources to SystemTray project, making it a standalone library (no others dorkbox suite deps).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
6 participants
You can’t perform that action at this time.