You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2009/06/25 11:31:07 UTC

[jira] Commented: (HARMONY-5043) [classlib][awt] Graphics2D.getDeviceConfiguration() throws RuntimeException

    [ https://issues.apache.org/jira/browse/HARMONY-5043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723970#action_12723970 ] 

Mark Hindess commented on HARMONY-5043:
---------------------------------------

Please can a windows user verify (and close) this jira?  Thanks.



> [classlib][awt] Graphics2D.getDeviceConfiguration() throws RuntimeException
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-5043
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5043
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows
>            Reporter: Dmitriy Matveev
>            Assignee: Alexei Zakharov
>         Attachments: H-5043.patch
>
>
> Graphics2D.getDeviceConfiguration() throws exception:
> java.lang.RuntimeException: Unknown Graphics Device Pixel Format
> Reproducer:
> import java.awt.Frame;
> import java.awt.Graphics;
> import java.awt.Graphics2D;
> import java.awt.event.WindowAdapter;
> import java.awt.event.WindowEvent;
> public class Test {
>     public static void main(String[] args) {
>         Frame f = new Frame() {
>             public void paint(Graphics g) {
>                 Graphics2D g2d = (Graphics2D) g;
>                 g2d.getDeviceConfiguration();
>             }
>         };
>         f.setBounds(0, 0, 800, 600);
>         f.setVisible(true);
>         f.addWindowListener(new WindowAdapter() {
>             public void windowClosing(WindowEvent ev) {
>                 System.exit(0);
>             }
>         });
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.