-
Bug
-
Resolution: Fixed
-
P3
-
6u10, 6u12, 7
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2170104 | 6u14 | Dmitry Cherepanov | P3 | Closed | Fixed | b01 |
JDK-2225241 | OpenJDK6 | Kelly Ohair | P3 | Resolved | Fixed | b26 |
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.
..\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.
- backported by
-
JDK-2225241 modal dialog closes with fatal error if -Xcheck:jni is set
- Resolved
-
JDK-2170104 modal dialog closes with fatal error if -Xcheck:jni is set
- Closed
- duplicates
-
JDK-6776193 java/awt/FileDialog/TestFileDialogJNIRef/TestFileDialogJNIRef.sh test failed on 6u12b01 on Windows
- Closed
-
JDK-6805157 Bad global or local ref passed to JNI with Java6u12 when -Xcheck:jni
- Closed
- relates to
-
JDK-7174440 JDK6-open build breakage
- Resolved