Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8354646

java.awt.TextField allows to identify the spaces in a password when double clicked at the starting and end of the text

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 8, 11, 17, 21, 24, 25
    • client-libs
    • MacOS 15 aarch64

      Tested Platform: MacOS 15 aarch64
      Test Suite: Regression
      Test: java/awt/TextField/SetEchoCharWordOpsTest.java
      Description: java.awt.TextField allows to identify the spaces in a password when double clicked at the starting and end of the text even when setEchoChar() is set.
      -------------------------------------------------------------------------------------------------------
      Steps to Reproduce:
      1. Run java/awt/TextField/SetEchoCharWordOpsTest.java
      2. Double click at the start and the end of the text field containing *.

      Expected behavior: It should NOT allow highlighting the last or first words or it should not reveal that whether a space is there in the password or not.
      Actual behavior: It is highlighting the first and last words which will potentially allow to identify the number of words in a password and the length of each word.

            honkar Harshitha Onkar
            mvs Manukumar V S
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: