On Thu, 4 Mar 2021 02:56:05 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
>> Alexander Zuev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Moved checking block up to keep consistency of operations. > > test/jdk/javax/swing/JComponent/7154030/bug7154030.java line 115: > >> 113: Graphics g = fullScreen.getGraphics(); >> 114: g.setColor(Color.RED); >> 115: g.drawRect(locx - 1, locy - 1, frw + 1, frh + 1); > > I believe we need to call g.dispose to dispose this object which we > normallydo after getGraphics() call. It is not necessary in such a short test, JVM will exit after test ends which will clear all the resources captured by this Graphics instance. ------------- PR: https://git.openjdk.java.net/jdk/pull/2790