RFR: 8375480: Remove usage of AppContext from javax/swing/text [v2]

Sergey Bylokhov serb at openjdk.org
Tue Jan 20 22:08:38 UTC 2026


On Tue, 20 Jan 2026 20:40:30 GMT, Phil Race <prr at openjdk.org> wrote:

> And the containing package doc
>https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/javax/swing/text/html/package-summary.html
>Says "Most of the Swing API is not thread safe...."

This is mostly correct, except for cases where some parts of the API may be used by the lightweight AWT. 

>I don't understaand the comment about LazyConstants.
>The Stylesheet is not being eagerly created.

That comment referred to a task of removing the AppContext as a whole, where many things are now being moved into static blocks.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29259#discussion_r2710226105


More information about the client-libs-dev mailing list