RFR: JDK-8015739: Background of JInternalFrame is located out of JInternalFrame [v9]

Harshitha Onkar honkar at openjdk.org
Mon Nov 7 16:47:41 UTC 2022


On Sat, 5 Nov 2022 04:49:25 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBorders.java line 266:
>> 
>>> 264:             }
>>> 265: 
>>> 266:             Graphics2D g2d = (Graphics2D) g;
>> 
>> It could be a DebugGraphics which is not a Graphics2D
>
> If the code will be refactored please double-check that the blind cast will not be used, "g" could DebugGraphics which is not a Graphics2D

Thank you for catching it. Made a note of it , to add it during refactoring changes - [JDK-8294680](https://bugs.openjdk.org/browse/JDK-8294680)

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

PR: https://git.openjdk.org/jdk/pull/10274



More information about the client-libs-dev mailing list