<Swing Dev> [jdk16] RFR: 8258373: Update the text handling in the JPasswordField
Sergey Bylokhov
serb at openjdk.java.net
Fri Dec 18 01:30:58 UTC 2020
On Thu, 17 Dec 2020 17:19:19 GMT, Prasanta Sadhukhan <psadhukhan 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?
"make docs" works fine.
-------------
PR: https://git.openjdk.java.net/jdk16/pull/39
More information about the swing-dev
mailing list