On Sat, 5 Nov 2022 04:49:25 GMT, Sergey Bylokhov <s...@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