<Swing Dev> [jdk16] RFR: 8258373: Update the text handling in the JPasswordField
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Thu Dec 17 17:22:03 UTC 2020
On Wed, 16 Dec 2020 20:35:04 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> - The JTextComponent.setText() is overidden in the JPasswordField to make the "text" property non-"bound" in the JPasswordField, same as in the JTextComponent
> - The new implementation of setText() clean an internal data storage
> - Also some internal caches are cleaned as well
src/java.desktop/share/classes/javax/swing/JPasswordField.java line 286:
> 284: @BeanProperty(bound = false, description = "the text of this component")
> 285: public void setText(String t) {
> 286: // overwrite the old data first
If we dont have javadoc for a public method, wouldn't build like make-docs fail?
-------------
PR: https://git.openjdk.java.net/jdk16/pull/39
More information about the swing-dev
mailing list