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

Update the text handling in the JPasswordField

    XMLWordPrintable

Details

    Backports

      Description

         - Intentionally the JTextComponent.setText/getText property was marked as bound=false. It was implementing by marking the JTextComponent.setText() in a special way.
         - But the getText() was overidden in the JPasswordField the java.beans.Introspector started to use information from the this JPasswordField.getText() method instead of information from JTextComponent.setText(). So the "text" property became "bound".

        To fix it in a compatible way we may need to override the JTextComponent.setText() as well and mark it to be "bound=false"

        We also have to improve internal data cleanup in the JPasswordField by setText() method.

        Attachments

          Issue Links

            Activity

              People

                serb Sergey Bylokhov
                vdyakov Victor Dyakov
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: