On 19/04/16 15:40, Semyon Sadetsky wrote:
Hello,

Please review fix for JDK9:
bug: https://bugs.openjdk.java.net/browse/JDK-8154431
webrev: http://cr.openjdk.java.net/~ssadetsky/8154431/webrev.00/

  - there is a small typo in the test copyright year: 20016
- could you add a check to the verifyTarget(JComponent) method implementation in the test that the passed component is really the target component.

  Thanks,
  Alexandr.

The thing is the Swing validation doesn't allow to validate state of the target component of input focus transfer operation. To support that the fix adds two new methods verifyTarget(JComponent target) and shouldYieldFocus(JComponent source, JComponent target) to the javax.swing.InputVerifier class, and its old shouldYieldFocus(JComponent input) is marked as deprecated.
The solution guaranties full compatibility with previous JDK versions.

--Semyon


Reply via email to