<AWT Dev> Review Request for 8160056: TextField.setText breaks the contract of EOL

Alexandr Scherbatiy alexandr.scherbatiy at oracle.com
Thu Aug 25 16:17:02 UTC 2016


The fix looks good to me.

Thanks,
Alexandr.

On 8/16/2016 1:16 PM, Ambarish Rapte wrote:
>
> Hi,
>
>                 Please review the change for JDK9,
>
>                 Bug: https://bugs.openjdk.java.net/browse/JDK-8160056
>
>                 Webrev: 
> http://cr.openjdk.java.net/~arapte/8160056/webrev.00/ 
> <http://cr.openjdk.java.net/%7Earapte/8160056/webrev.00/>
>
> Change Description:
>
> The TextField is a single line text component.
>
> If the input text contains new line characters then the character will 
> be replace by space character.
>
>                 TextField replaces EOL(platform specific)  and 
>  LF(\n)  characters with space character.
>
>                 Information about LF character is not explicitly 
> mentioned in the java doc.
>
>                 Hence adding the missing description.
>
> Regards,
>
> Ambarish
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160825/3d40e8fd/attachment.html>


More information about the awt-dev mailing list