Re: I had a fun one today.
Posted by
imakerobots on
Mar 26, 2025; 3:43pm
URL: https://forum.jogamp.org/I-had-a-fun-one-today-tp4043704p4043706.html
https://docs.oracle.com/javase/8/docs/api/java/awt/Graphics.html#dispose--> it is preferable to manually free the associated resources by calling this method rather than to rely on a finalization process
I didn't expect finalize() to be called, it's on by default in IntelliJ running JDK 22, so I wrote code to handle either way.