Re: Toolkit.createCustomCursor throws exceptions

2016-04-20 Thread Mario Torre
2016-04-20 20:32 GMT+02:00 Sergey Bylokhov : > Hi, Mario. >> >> BTW, Toolkit.createCustomCursor doesn't say to throw anything upon >> failure, I would expect user code to check getBestCursorSize before >> calling createCustomCursor, but this seems to never be done in the >> internal code, and I do

Re: Toolkit.createCustomCursor throws exceptions

2016-04-20 Thread Sergey Bylokhov
Hi, Mario. BTW, Toolkit.createCustomCursor doesn't say to throw anything upon failure, I would expect user code to check getBestCursorSize before calling createCustomCursor, but this seems to never be done in the internal code, and I don't know if we can fix this since it would be a behaviour di

Toolkit.createCustomCursor throws exceptions

2016-04-20 Thread Mario Torre
Hi all, I happens that I stumbled upon an interesting issue with XToolkit.createCustomCursor(). On a very specific combination of hardware and X11 driver we get an exception propagating from XToolkit.createCustomCursor(), the exception is: java.awt.AWTException: Exception: class java.lang.Illega