RFR: 8055461: getNextID in ImageIcon class can lead to overflow

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Jun 10 02:29:30 UTC 2025


On Mon, 9 Jun 2025 06:09:37 GMT, Jeremy Wood <duke at openjdk.org> wrote:

> trigger this condition in an app that ran for about 30 minutes.

What condition? I couldnt get OOM even after running several hours in Windows and Mac...id didnt reach 2147483647

This issue was not raised by me so clearly somebody felt the need for it..Also, I think it is better to get ABORTED status for the image to let the user know so that corrective action can be taken,
instead of  aborting the application with OOM or whatever exception it gets thrown

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25666#discussion_r2136795367


More information about the client-libs-dev mailing list