JDK-7124541 : [macosx] mouseMoved Events test do not respond in JCK-runtime-7 interactive
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2012-03-22
  • Resolved: 2011-12-27
Related Reports
Duplicate :  
Description
http://java.net/jira/browse/MACOSX_PORT-448 submitted 2011/09/26 by Ludmila Shikhvarg
api/java_awt/interactive/event/EventTests_EventTest0018 test fails in JCK-runtime-7 interactive with jdk7 Build b208.
Expected behavior in Windows Events Test:
Please press "Show Windows" button and perform actions on the window ...
Each event generated on the windows will turn on the corresponding event checkbox on the right.
All event checkboxes must be checked via events generated on the window for the test to pass.
Actual results:
All events are performed correct accept mouseMoved, it doesn't respond.
---------<del>out1<img class=&quot;emoticon&quot; src=&quot;/jira/images/icons/emoticons/sad.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/>5/212)</del>---------
openjdk version &quot;1.7.0-ea&quot;
OpenJDK Runtime Environment (build 1.7.0-ea-b208)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
STATUS:Failed.test cases: 1; all failed; first test case failure: EventTest0018
---------<del>out2<img class=&quot;emoticon&quot; src=&quot;/jira/images/icons/emoticons/sad.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/>1/89)</del>---------
EventTest0018: Failed. All event checkboxes NOT checked via generation of window events.
result: Failed. test cases: 1; all failed; first test case failure: EventTest0018
test result: Failed. test cases: 1; all failed; first test case failure: EventTest0018
RULE api/java_awt/interactive/event/EventTests_EventTest0018 any any

Comments
EVALUATION Author: Alexander Potochkin Date: 10/Nov/11 10:44 AM reproducible Author: Alexander Potochkin Date: 14/Dec/11 05:51 PM All window's events work except mouseEntered/mouseExited. I checked that those events neither work for awt.Window on JDK 1.6, here is a simple test case: import javax.swing.*; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; public class bug448 extends JWindow { public bug448() { addMouseListener(new MouseListener() { public void mouseClicked(MouseEvent e) { System.out.println(&quot;bug448.mouseClicked&quot;); } public void mousePressed(MouseEvent e) { } public void mouseReleased(MouseEvent e) { } public void mouseEntered(MouseEvent e) { System.out.println(&quot;bug448.mouseEntered&quot;); } public void mouseExited(MouseEvent e) { System.out.println(&quot;bug448.mouseExited&quot;); } }); setSize(200, 300); } public static void main(String... args) throws Exception { String version = System.getProperty(&quot;java.version&quot;); System.out.println(&quot;version = &quot; + version); SwingUtilities.invokeLater(new Runnable() { public void run() { new bug448().setVisible(true); } }); } } Author: Alexander Potochkin Date: 14/Dec/11 05:55 PM so the present behavior is &quot;compatible&quot; with JDK 1.6, however it is quite surprising and breaks the JCK test. Author: Alexander Potochkin Date: 16/Dec/11 02:44 PM Bug #7122250 is filed in Bugster Author: Alexander Potochkin Date: 16/Dec/11 02:46 PM Assigned to JCK team to get their opinion on it. Author: Alexander Potochkin Date: 21/Dec/11 04:33 PM For some reason awt.Window subclasses don't get mouseEntered/mouseExited events both on our Mac port and Apple JDK 6. We should find out if it was intentionally implemented. Is it safe to to have awt.Window generate mouseEntered/mouseExited events on MacOS?
23-12-2011