<Swing Dev> RFR: 8272232: javax/swing/JTable/4275046/bug4275046.java failed with "Expected value in the cell: 'rededited' but found 'redEDITED'."
Alexey Ivanov
aivanov at openjdk.java.net
Mon Aug 16 16:00:32 UTC 2021
On Mon, 16 Aug 2021 04:27:52 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> As I told in initial explanation, I thought it will be either CAPS_LOCK key switched on or some other test did not use SHIFT key corectly ie, pressed but not released.
This seems the likely cause. And in this case we have to find the test which leaves Shift presses or uses Caps Lock.
> I could not do anything about if someone press CAPS_LOCK so I search for VK_SHIFT being used in all javax/swing reg test and I found this test bug8033699.java is having a wrong order. I am not saying this was the root cause but it needs rectifying, I presume..
In this test, bug8033699.java, the Shift key _is released_, however, it's released before Tab is released whereas (modifier) keys are usually released in the reverse order to the order they are pressed.
Have you already submitted a bug to fix the release order?
> Also, the fix I proposed will not have any impact on this test testing 4275046 fix because of the reason mentioned above (original bug is about new characters being part of field, lowercsae/uppercase does not matter)
Yes, you're right the test is about getting the new text committed into the table cell. Yet the test didn't press Shift key, nor did it turn Caps Lock on, which means the problem is external to the test itself. If Shift key remains pressed, some other test could fails, for example, bug8033699.java will liked fail if it's started with Shift key press because focus will be traversed in the reverse order rather than forward order.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5079
More information about the swing-dev
mailing list