RFR: 8375480: Remove usage of AppContext from javax/swing/text [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Wed Jan 21 09:32:31 UTC 2026
On Tue, 20 Jan 2026 20:25:24 GMT, Phil Race <prr at openjdk.org> wrote:
>> This PR removes usage of AppContext from classes under javax/swing/text.
>> Most of the uses were added in specific bug fixes 10-15 years ago but are now obsolete and the tests for those bugs need to be deleted too.
>
> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
>
> 8375350
src/java.desktop/share/classes/javax/swing/text/html/parser/Element.java line 109:
> 107: this.index = index;
> 108: if (index > getMaxIndex()) {
> 109: maxIndex = index;
guess before AppContext was added the code was
`maxIndex = Math.max(maxIndex, index);`
https://hg.openjdk.org/jdk8/jdk8/jdk/rev/0967103c1b65
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29259#discussion_r2711703592
More information about the client-libs-dev
mailing list