JDK-8158491 : [TEST_BUG] [macosx] Please investigate the test failure: javax/swing/text/JTextComponent/5074573/bug5074573.java
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • Submitted: 2016-06-02
  • Updated: 2016-09-02
  • Resolved: 2016-09-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Description
Run the test on OS X with JDK9 b120:
javax/swing/text/JTextComponent/5074573/bug5074573.java

it will fail with Aqua LaF: neither Alt+Backspace nor Alt+Delete would have no effect in JTextArea.
However, running a simplest application with JTextArea or playing with the same test as a main application after robot finished, we could say the functionality works. I don't see any bug in the test. That may be a Robot issue.

Even simpler illustration I'll attach here. Robot will type 'a' and then  Alt+Backspace; a listener will report all keyPress events; however the typed 'a' will not be deleted. Once I type Alt+Backspace by hand again, it will.

Perhaps it has something common with JDK-8157173.

And, it worked in b111, b118: so I'm afraid there's a regression -- I'm just not sure how grave one. Definitely it would block certain testing.
Comments
This issue is already fixed in JDK 127 build as part of fix of the issue 8155740. Webrev link: http://cr.openjdk.java.net/~mhalder/8155740/webrev.05/ Hence closing this issue as a duplicate of issue 8155740.
15-08-2016

Assigning to Manajit for analysis and fix as it looks like an AWT issue fixed by author
27-07-2016

This is not a regression. The functionality of Delete button is the same as Backspace button on Mac OS X. http://www.apple.com/shop/question/answers/readonly/are-apple-keyboards-with-only-a-delete-key-less-efficient-in-making-deletions-than-conventional-keyboards-with-both-a-backspace-and-a-delete-key/QA9JYDAJHJHYPYUJF?tagName=mac
27-07-2016

Hmm, if it is a test bug, where's a bug in the attached DTest.java code?
03-06-2016

Also, here: javax/swing/text/DefaultEditorKit/4278839/bug4278839.java -- the robot, it seems, never hits Alt+arrows. Cursor doesn't move at all. RULE "javax/swing/text/DefaultEditorKit/4278839/bug4278839.java" Exception java.lang.RuntimeException: Test failed.
02-06-2016

RULE "javax/swing/text/JTextComponent/5074573/bug5074573.java" Exception java.lang.RuntimeException: failed
02-06-2016