RFR: 8376420: Remove AppContext from javax/swing/ImageIcon.java
Sergey Bylokhov
serb at openjdk.org
Wed Jan 28 19:41:35 UTC 2026
On Wed, 28 Jan 2026 15:54:55 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> Not as far as I can see
>> https://hg.openjdk.org/jdk8/jdk8/jdk/rev/54a6e22b749c
>> I think that it was visible to apps was the issue.
>
> I agree it's safer not to use the deprecated field *that's visible to apps*.
I am pretty sure this was AppContext related, since we could not return a MediaTracker stored in one AppContext to another AppContext and now we are doing exactly that, but ok not a big issue.
The only difference between the two is that the old MediaTracker component was created using createComponent, which resets the AppContext, should we drop that AppContext usage there as well?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29433#discussion_r2738293304
More information about the client-libs-dev
mailing list