提交 61fa3c80 编写于 作者: D denis

7110590: DnDMerlinQLTestsuite_DnDJTextArea test fails with an...

7110590: DnDMerlinQLTestsuite_DnDJTextArea test fails with an java.awt.dnd.InvalidDnDOperationException
Reviewed-by: art
上级 58bf041c
...@@ -802,8 +802,11 @@ public class AWTKeyStroke implements Serializable { ...@@ -802,8 +802,11 @@ public class AWTKeyStroke implements Serializable {
*/ */
protected Object readResolve() throws java.io.ObjectStreamException { protected Object readResolve() throws java.io.ObjectStreamException {
synchronized (AWTKeyStroke.class) { synchronized (AWTKeyStroke.class) {
return getCachedStroke(keyChar, keyCode, modifiers, onKeyRelease); if (getClass().equals(getAWTKeyStrokeClass())) {
return getCachedStroke(keyChar, keyCode, modifiers, onKeyRelease);
}
} }
return this;
} }
private static int mapOldModifiers(int modifiers) { private static int mapOldModifiers(int modifiers) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册