JavaFX silently swallowing exception raised in drag listeners

前端 未结 1 1416
没有蜡笔的小新
没有蜡笔的小新 2021-01-16 06:38

It appears that exceptions are silently swallowed in drag over listeners in JavaFX. I\'ve searched and can\'t find any mention of this in the documentation.

I\'ve r

相关标签:
1条回答
  • 2021-01-16 07:07

    It appears that native method WinDnDClipboard.push(Object[], int) - backed by GlassClipboard.cpp swallows the exception silently. A call back to Throwable.getMessage() can be seen in the debugger but no exception is printed to the console.

    The Java 9 version of this file (http://hg.openjdk.java.net/openjfx/9-dev/rt/file/1a3f128518cd/modules/javafx.graphics/src/main/native-glass/win/GlassClipboard.cpp) has an additional call to CheckAndClearException(env); as defined in Utils.cpp, however this is against RT-35400 which appears unrelated. This has not been backported to Java 8.

    0 讨论(0)
提交回复
热议问题