Hi,
Test case should validate based on expected values and not on value which we are getting from ExtendedModifiers. So we should pass expected value to assertEQ(). Changes are fine related to it. But according to coding guidelines variables which contain constants should be declared in capital letters. Change the "LOCK" variable which is declared in capital letters. Also add new Bug ID in jtreg description. Thanks, Jay From: Ambarish Rapte Sent: Thursday, December 10, 2015 9:01 PM To: Semyon Sadetsky; Prasanta Sadhukhan; Rajeev Chamyal; awt-dev@openjdk.java.net Subject: <AWT Dev> Review request for 8145116: [TEST_BUG] Incorrect binary comparison in java/awt/event/KeyEvent/ExtendedModifiersTest/ExtendedModifiersTest.java Hi, Please review the fix patch for JDK9, Bug: https://bugs.openjdk.java.net/browse/JDK-8145116 Webrev: http://cr.openjdk.java.net/~arapte/8145116/webrev.00/ Issue: This is a test code issue. The binary comparison for validating the result was incorrect. The test would PASS even for wrong inputs. Please refer to the bug description for how to provide wrong inputs. Fix: Fixed the binary comparison. Please compare line number 177 from left with line 185 on right. Remaining changes are related to coding guidelines, robot synchronization. Thanks, Ambarish