You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Austin Stephens (Jira)" <ji...@apache.org> on 2022/05/27 20:24:00 UTC

[jira] [Commented] (NETBEANS-6497) class javax.swing.DebugGraphics cannot be cast to class java.awt.Graphics2D

    [ https://issues.apache.org/jira/browse/NETBEANS-6497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17543109#comment-17543109 ] 

Austin Stephens commented on NETBEANS-6497:
-------------------------------------------

Ah. Thanks. I will move it there then

> class javax.swing.DebugGraphics cannot be cast to class java.awt.Graphics2D 
> ----------------------------------------------------------------------------
>
>                 Key: NETBEANS-6497
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6497
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Window System
>    Affects Versions: 12.4, 12.5, 12.6
>            Reporter: Austin Stephens
>            Priority: Major
>
> A various number of Windowing components (such as ColorUtil) expect the input graphics to be a `Graphics2D`, which is not the case when `JComponent.setDebugGraphicsOptions​` was set with a non-zero value. This makes it difficult to debug graphical issues.
> This, of course, wouldn't be an issue if [https://bugs.openjdk.java.net/browse/JDK-4262543] was resolved instead of left hanging, but we are not expecting them to fix that any time soon. The code location given is not the only place where it is assumed.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists