RFR: 8377393: RichTextArea: failed to export null color attribute value

Lukasz Kostyra lkostyra at openjdk.org
Thu Feb 12 13:42:54 UTC 2026


On Fri, 6 Feb 2026 21:08:50 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> RichEditorDemo exposed a logical flaw in the RichTextFormatHandler responsible for copy/save/export code. Technically speaking, this is a product bug in the RichTextArea, though it can only be reproduced with RichEditorDemo.
> 
> To reproduce:
> 
> - open RichEditorDemo app
> - type 1, tab, 2, tab, 3
> - select the first line
> - copy (command-C or ctrl-C)
> - paste (command-V or ctrl-V)
> 
> --> nothing gets pasted because the RichEditorDemo toolbar sets the text color to null, which breaks the attribute
> 
> Also, attempt to save this file produces corrupted output.

Looks good, verified on my machine and the issue is fixed.

-------------

Marked as reviewed by lkostyra (Reviewer).

PR Review: https://git.openjdk.org/jfx/pull/2067#pullrequestreview-3791089828


More information about the openjfx-dev mailing list