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

Update the text handling in the JPasswordField

XMLWordPrintable

         - 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.

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

                Created:
                Updated:
                Resolved: