Skip to content

Commit 297fffa

Browse files
author
Roland Mesde
committed
8343739: Test java/awt/event/KeyEvent/ExtendedKeyCode/ExtendedKeyCodeTest.java failed: Wrong extended key code
Backport-of: e91088a
1 parent 1bf953e commit 297fffa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/jdk/java/awt/event/KeyEvent/ExtendedKeyCode/ExtendedKeyCodeTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -30,8 +30,7 @@
3030
* @test
3131
* @key headful
3232
* @bug 8007156 8025126
33-
* @summary Extended key code is not set for a key event
34-
* @author Alexandr Scherbatiy
33+
* @summary Tests that ExtendedKeyCode is set for key events
3534
* @library /lib/client
3635
* @build ExtendedRobot
3736
* @run main ExtendedKeyCodeTest
@@ -75,7 +74,8 @@ public void keyReleased(KeyEvent e) {
7574
frame.dispose();
7675

7776
if (eventsCount != 2 || !setExtendedKeyCode) {
78-
throw new RuntimeException("Wrong extended key code");
77+
throw new RuntimeException("Wrong extended key code\n" +
78+
"eventsCount: " + eventsCount);
7979
}
8080

8181
frame = new Frame();

0 commit comments

Comments
 (0)