RFR: JDK-8015739: Background of JInternalFrame is located out of JInternalFrame [v9]
Sergey Bylokhov
serb at openjdk.org
Sat Nov 5 04:51:40 UTC 2022
On Fri, 7 Oct 2022 21:42:40 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision:
>>
>> fix for pixel color at edge, outermost border lines drawn as part of bulk of border
>
> 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
-------------
PR: https://git.openjdk.org/jdk/pull/10274
More information about the client-libs-dev
mailing list