SirIntellegence opened a new issue, #5408: URL: https://github.com/apache/netbeans/issues/5408
### Apache NetBeans version Apache NetBeans 16 ### What happened (Copied from the jira issues site after confirming it is still broken in Netbeans 16) 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. ### How to reproduce (built at about https://github.com/apache/netbeans/pull/5299/commits/4f52c498989c58b2d568f489fc49b1bfcd5a4400) Start Netbeans Put a method breakpoint on `JComponent._paintImmediately` Evaluate the expression `this.setDebugGraphicsOptions(1);` You see the exception in the output log when you click on basically anything. ### Did this work correctly in an earlier version? No / Don't know ### Operating System Mac/Windows. Probably Linux as well ### JDK OpenJDK Runtime Environment Temurin-19.0.1+10 (build 19.0.1+10) ### Apache NetBeans packaging Own source build ### Anything else I discovered this while trying to debug a Netbeans platform application. It was a pain. ### Are you willing to submit a pull request? No ### Code of Conduct Yes -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
