On Tue, 31 Mar 2026 23:59:27 GMT, Sergey Bylokhov <[email protected]> wrote:
>> Here is my ideal refactor for this ticket. (It should manage listeners more >> reliably.) But my gut says not to go this route because it's too >> invasive/ambitious, especially given the original complaint. >> >> https://github.com/openjdk/jdk/compare/master...mickleness:8380790B?expand=1 > > That solution above seems too complicated. Note that the patch updates the > AccessibleJEditorPaneHTML class which is used only if current kit is > HTMLEditorKit, so if the user sets the non-html-EditorKit or new Document we > should drop the current accessibleContext and create a new one? When you say "drop the current accessibleContext" do you mean simply nullify `JTextComponent.accessibleContext`? Or are you talking about detaching DocumentListeners? (Or something else?) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30401#discussion_r3020092015
