JDK-8214112 : The whole text in target JPasswordField image are not selected.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2018-11-16
  • Updated: 2020-08-05
  • Resolved: 2019-03-05
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 11 JDK 12 JDK 13 JDK 8 Other
11.0.4-oracleFixed 12.0.2Fixed 13 b14Fixed 8u221Fixed openjdk8u222Fixed
Related Reports
Relates :  
Relates :  
Description
Testsuite name: Swing manual
Test name(s):Swing_AllComponents/Manual/LAFTests/JPasswordFieldLAFTest
Product(s) tested: JDK8u202 b04(64bit)
OS/architecture:Oel7.5 uek x64
Test Tool: tonga-4.0.2-rc2.jar
Options:-Djdk.gtk.version=3 -Djdk.gtk.verbose=true

Actual behavior:
1) S.no7:The whole text in target JPasswordField image are not selected.Refer to keyBoardOPPField.png
2) And there is no such issue without Options.

Afect case:
Swing_AllComponents/Manual/LAFTests/JPasswordFieldLAFTest: S.No3
Swing_AllComponents/Manual/LAFTests/JTextFieldLAFTest: S.No3 7 S.No7
Swing_AllComponents/Manual/LAFTests/JSpinnerLAFTest: S.No3 & S.No4 & S.No7
Comments
Fix Request (12u) This follows already complete backports to 11u and 8u. Patch applies cleanly to 12u. JPasswordFieldDemo test works fine after the patch, and looks wrong before the patch.
01-04-2019

Fix Request This issue solves GTK 3+ compatibility problem. Patch applies cleanly to 11u (and I see 11.0.4-oracle), and to 8u with reshuffling (and I see 8u221/222). JPasswordFieldDemo test works fine after the patch, and looks wrong before the patch. 8u requires -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Djdk.gtk.version=3 to reproduce. The risk is low.
19-03-2019

Attached JPasswordFieldDemo.java as standalone testcase. Start it, try to select entire text, fail. Reproduces on 11u with GTK 3.20.
19-03-2019

Is it possible to provide a standalone testcase to reproduce this?
27-12-2018

I am able to reproduce this on jdk8_202_b04 on OEL7.5, but this works fine on Ubuntu 16.04LTS
28-11-2018

Does it affect 12?
20-11-2018