harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5043) [classlib][awt] Graphics2D.getDeviceConfiguration() throws RuntimeException
Date Thu, 25 Jun 2009 09:31:07 GMT

    [ 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.


Mime
View raw message