RFR: 8354646: java.awt.TextField allows to identify the spaces in a password when double clicked at the starting and end of the text [v5]

Jeremy Wood duke at openjdk.org
Wed Jun 4 19:51:11 UTC 2025


On Tue, 3 Jun 2025 05:44:21 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> am i correct?

Yes.

> you should check for UIManager.getInstalledLookAndFeels() and iterate and test all the installed L&Fs of the current platform

OK, thanks. This is updated.

On my Mac the test output now resembles:

Testing LAF: javax.swing.plaf.metal.MetalLookAndFeel
Testing javax.swing.plaf.basic.BasicPasswordFieldUI at 146e76c
selectionStart = 0
selectionEnd = 13
Testing LAF: javax.swing.plaf.nimbus.NimbusLookAndFeel
Testing javax.swing.plaf.synth.SynthPasswordFieldUI at 6268e29
selectionStart = 0
selectionEnd = 13
Testing LAF: com.sun.java.swing.plaf.motif.MotifLookAndFeel
Testing com.sun.java.swing.plaf.motif.MotifPasswordFieldUI at 76498661
selectionStart = 0
selectionEnd = 13
Testing LAF: com.apple.laf.AquaLookAndFeel
Testing com.apple.laf.AquaTextPasswordFieldUI at 508545fe
selectionStart = 0
selectionEnd = 13

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25443#issuecomment-2941271168


More information about the client-libs-dev mailing list