A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
229
stars
71
forks
source link
org.hid4java.HidDevice.read(HidDevice.java:402) java.lang.NegativeArraySizeException: -1 on read failure #156
Open
fricpa opened 1 month ago
it's a bit confusing/discouraging that an error in the implementation leaks when a read fails:
this happened when I intentionally disconnected the device while it was being read. I would expect an IOException or something