Using JDK7 run sample with a modal dialog like Font2DTest from the jfc folder:
..\JDK7.0b19\bin\java -Xcheck:jni -jar Font2DTest.jar
Steps to reproduce:
1) Open File menu
2) select Print menu item
3) press Cancel button in the appeared dialog
FATAL ERROR in native method: Bad global or local ref passed to JNI
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(WToolkit.java:285)
at java.lang.Thread.run(Thread.java:659)
Reproducible always. Not reproducible with JDK6.