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/04/28 20:58:00 UTC

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

Austin Stephens created NETBEANS-6497:
-----------------------------------------

             Summary: 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.6, 12.5, 12.4
            Reporter: Austin Stephens


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